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’, […]
Recent Comments