# tuple is data type that can store
# only immutable values(mean to say tuple values not change)
mytp = ("hello", "this" , "is")
print(mytp)
# tuple for one element
tp = (1,)
print(tp)
# Swap two items
a = 10
b = 12
# IN NORMAL WAY
# tmp = a
# a = b
# b = tmp
# IN PYTHON
a , b = b , a
print(a , b)
Enable GingerCannot connect to Ginger Check your internet connection
or reload the browserDisable in this text fieldRephraseRephrase current sentenceEdit in GingerEnable GingerCannot connect to Ginger Check your internet connection
or reload the browserDisable in this text fieldRephraseRephrase current sentenceEdit in GingerEnable GingerCannot connect to Ginger Check your internet connection
or reload the browserDisable in this text fieldRephraseRephrase current sentenceEdit in Ginger
Comments
Post a Comment