Blog

Your blog category

Tuple

#create an empty tuple a =() print(a) #create an empty tuple with tuple() function built in python tuplea = tuple() print(tuplea) #crete a tuple with different data type tuplex = (“apple”, True, 1.4, 4) print(tuplex) #tuple with number tuplex = 1, 4 , 3 , 7 , 22 print(tuplex) #unpack tuple in several variable tuplex

Tuple Read More »