Home‎ > ‎Python‎ > ‎

Tuples


Tuples: 

Just like lists, but they can not be changed or modified once created.  
Code: 
alphabet = ('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z')

print(len(alphabet))
Output: 
26


Comments