Single-Element Tuples : Introduction : Tuple PYTHON TUTORIALS


PYTHON TUTORIALS » Tuple » Introduction »

 

Single-Element Tuples


print ['abc']
print type(['abc'])   # a list
print ('xyz')
print type(('xyz'))   # a string, not a tuple
print ('xyz',)



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Tuple
» Introduction