Assigning Consecutive Values : Variable Assign « Language Basics « Python






Assigning Consecutive Values

Assigning Consecutive Values
 


print range(7)                                                                    

(MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY) = range(7) 

print MONDAY                                                                      

print TUESDAY 

print SUNDAY 
           
         
  








Related examples in the same category

1.Assigning Multiple Values at OnceAssigning Multiple Values at Once
2.A value can be assigned to several variables simultaneously:A value can be assigned to several variables simultaneously: