Creating and accessing tuples. : Assign : Tuple PYTHON TUTORIALS


PYTHON TUTORIALS » Tuple » Assign »

 

Creating and accessing tuples.


hour = 1
minute = 2
second = 3

currentTime = hour, minute, second   # create tuple

print "The value of currentTime is:", currentTime

print "The number of seconds since midnight is"
   currentTime3600 + currentTime60 + currentTime] )



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Tuple
» Assign