Tuples in Python

 #tuples in python

tp = (1, 2, 3)

tp = (1,)

print(tp)

a = 44

b = 32

temp = a

a = b

b = temp    #it will change the value of a into b swap

print(a,b)     #search google--python list functions

family = {"faizan":"alam","sajjad":"alam","shahzadi":"begam"}

print(family)   #whole list in family is printed

print(family["faizan"])   #family k andar faizan ka answer will print

Comments