Dictionary Practice Program for marks using the python

technical talkiess
0

write a program user input the person name and the dictionary list you find and return the marks of the person

Dictionary Practice Program for marks  using the python

 marks = {"vishal":"98%","Lakhan":"67%","Rohan":"98%","Hari":"99%","amol":"67%"}

print("Please Enter the name of the person which marks you want")
input_name = input()

print(marks[input_name])


Output :-
Please Enter the name of the person which marks you want Hari 99%
Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)