tuples : Tuple Creation : Tuple PYTHON examples


PYTHON examples » Tuple » Tuple Creation »

 

tuples


tuples: swaps values



nudge = 1
wink  = 2
nudge, wink = wink, nudge      # tuples: swaps values
print nudge, wink                    # like T=nudge; nudge=wink; wink=T

           
       



Leave a Comment / Note


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


PYTHON examples

 Navioo Tuple
» Tuple Creation