[Python] Python Dictionary for my name and bid program

Discussão em 'Python' iniciado por Stack, Fevereiro 3, 2025.

  1. Stack

    Stack Membro Participativo

    name = input("Enter your name: ")
    bid = int(input("Enter your bid: "))
    bids = {}
    for name,bid in bids.items():
    bids += { name : bid }
    print(bids)


    I am getting empty output as {}.

    Could you please help me to rectify my error? As a fellow beginner in Python.

    Continue reading...

Compartilhe esta Página