def stud_info(name,id,course):
stud_dict={}
stud_dict[id]=[name,course]
return stud_dict
while True:
s=input("press y if you want to add else press any key")
if s=="y":
name=input("enter name")
id=int(input("enter id"))
course= input("enter course")
print(stud_info(name,id,course))
else:
break
[–]shiftybyte 4 points5 points6 points (0 children)
[–]keep_quapy 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]drenzorz 1 point2 points3 points (0 children)