Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset
Comments Off

Parcourir les éléments d’un tuple


{filelink=15983}

 
T1 = ("z","b", "c", "d")
T2 = (8,2, 3, 4)
 
# Parcourir et afficher les 2 tuples
for x in T1:
 print x,
for x in T2:
 print x,

Livres Sur ce Sujet

----------------------------------------------------------------------------

Comments are closed.