[Python] TypeError: got multiple values for argument

Discussão em 'Python' iniciado por Stack, Agosto 5, 2025.

  1. Stack

    Stack Membro Participativo

    I have this code:

    BOX_LENGTH = 100
    for i in range(8):
    if i % 2 == 0:
    Horizontol_drawbox(BOX_LENGTH, fillBox = False)
    else:
    Horizontol_drawbox(BOX_LENGTH, fillBox = True)


    But I get an error that says:

    Horizontol_drawbox(BOX_LENGTH, fillBox = True)
    TypeError: Horizontol_drawbox() got multiple values for argument 'fillBox'


    What does this mean, and how can I fix the problem?

    Continue reading...

Compartilhe esta Página