Uploaded by Sarim Ali Rao

PYTHON LAB

advertisement
PYTHON CODES
Question # 1:
dic={'First name':'Babar','Last name':'Azam','Profession':'Cricketer','Age':'28'}
print(dic)
Question # 2:
dic={'First name':'Babar','Last name':'Azam','Profession':'Cricketer','Age':'28'}
dic['Role']='Batsman'
print(dic)
Question # 3:
dic={'First name':'Babar','Last name':'Azam','Profession':'Cricketer','Age':'28'}
dic['Role']='Batsman'
dic['Centuries']={'Test':9,'ODI':17,'T20':2}
print(dic)
Download