1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] TypeError: input expected at most 1 arguments, got 5

Discussão em 'Python' iniciado por Stack, Setembro 10, 2024.

  1. Stack

    Stack Membro Participativo

    When I am trying to input get a number into the system I get an error.

    userInput= int(input("What is", RanNum1," - ", RanNum2," = ?"))


    That is the code in question and the error entails this:

    Traceback (most recent call last):
    File "H:/Project/MathProgram.py", line 144, in <module>
    userAnswer = Addition(RanNum1, RanNum2)
    File "H:/Project/MathProgram.py", line 33, in Addition
    userInput= int(input("What is", RanNum1," - ", RanNum2," = ?"))
    TypeError: input expected at most 1 arguments, got 5


    I have no idea why!

    Continue reading...

Compartilhe esta Página