April 2015
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
27282930  

Categories

April 2015
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
27282930  

Python Tutorial

Data Type Conversion

a) int(55.89)

b) float(36)

my_string=str(9500)

Tuple >>> tuple(“This is a string.”) (‘T’, ‘h’, ‘i’, ‘s’, ‘ ‘, ‘i’, ‘s’, ‘ ‘, ‘a’, ‘ ‘, ‘s’, ‘t’, ‘r’, ‘i’, ‘n’, ‘g’, ‘.’) >>>

list(“This will be a list”)

>>> list(“This will be a list”) [‘T’, ‘h’, ‘i’, ‘s’, ‘ ‘, ‘w’, ‘i’, […]