Assigning Multiple Values at Once : Variable Assign « Language Basics « Python






Assigning Multiple Values at Once

Assigning Multiple Values at Once
 



v = ('a', 'b', 'e') 
(x, y, z) = v                                      

print x 

print y 

print z 
           
         
  








Related examples in the same category

1.A value can be assigned to several variables simultaneously:A value can be assigned to several variables simultaneously:
2.Assigning Consecutive ValuesAssigning Consecutive Values