python dictionary take input from user code example Example: dictionary input from user in python3 d=dict(input().split() for x in range(n)) print(d)