Seems simple, yet elusive, want to build a dict from input of [key,value] pairs separated by a space using just one Python statement. This is what I have so far:
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)