News

#4. Python tuples #!/usr/bin/python print ("Python tuple variable") tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 ) tinytuple = (123, 'john') print (tuple) # Prints the complete tuple print (tuple [0]) # ...
Python supports a variety of data types such as numeric (integers, floats, complex), string, boolean, list, tuple, and dictionary. Each data type has its own unique set of properties and methods.