The Very Simple First Code
Few weeks back when i first started working on Python in Pycharm IDE .
[The Code is here]
contacts={
'name': 'MD ZIAUR RAHMAN',
'dob': '02-07-1992',
'email' : 'rehmanzed@gmail.com',
'phone' : '017047777777',
}
password=input("Enter The Passcode: ")
if password=="zed":
set = input("search here please : ")
if (set in contacts):
print(contacts[set])
set1 = input("TRY AGAIN : ")
if (set1 in contacts):
print(contacts[set1])
set2 = input("TRY ANOTHER : ")
if (set2 in contacts):
print(contacts[set2])
set3 = input("TRY LAST ONE : ")
if (set3 in contacts):
print(contacts[set3])
print("THANX A LOT")
else:
print("NOT FOUND")
You will asked to write a code , if its True then the next statement will come one by one .If the input is true then it will print the value which i assigned in the code .