There is no need for loop, try this easy method, but there are others too:
name=input('Enter your name: ') bid=input('Enter your bid: ') dict1={} dict1[name]=bid print(dict1)