SyntaxFix
Write A Post
Hire A Developer
Questions
Take input from user:
input = int(input("enter a n value:")) dict = {} for i in range(input): name = input() values = int(input()) dict[name] = values print(dict)