PYTHON CHALLENGE#4
WRITE A PROGRAM IN WHICH USER ENTER HIS NAME AND THE PROGRAM CHECKS THAT IS IN DICTIONARY OR NOT IF YES THAN PRINT NAME IS CORRECT OTHERWISE NAME IS INCORRECT
PLEASE DO IT YOURSELF
DON'T USE GOOGLE
TODAY CHALLENGE WINNER: shivangiryan
Go and CRACK IT###########
Answers
Answered by
1
Answer:
your answer...
Explanation:
name=str(input("enter the name"))
dictionary={}
n=int(input("enter the number"))
for i in range (n):
dictionary[i]=str(input("enter"))
dictionary.update()
values=dictionary.values()
if name in values:
print("name is correct")
else:
print("name is incorrect")
#hope it helps you
Similar questions