Dictionary function basic code

d4 = {"Adnan":"15.4.2020",
 "Amroz":"14.4.2020",
 "Amjad":"31.12.2000"}
name =input("enter the name :")
print(d4[name])

if you enter this keys you give data

Comments

Popular posts from this blog

Calculator

Python File IO Basics

Break & Continue Statements In Python