Write a program to declare a dictionary students having RN as key and Name as values. Input entry of 5 students from keyboard.
Answers
Answered by
0
Answer:
dict={}
for i in range(5):
z=int(input('enter RN'))
y=input('enter Name=')
print()
dict[z]=y
print("dictionary=",dict)
Explanation:
Similar questions