How do you fix "input expected at most 1 argument, got 2"?

Viewed 17

I'm coding a question and answer system and everything seems all right, until I run the program, then it starts giving me this error: "input expected at most 1 argument, got 2"

def program():
    print("Python Computer - A Python Program that gets Smarter the More you Use it!")
    question_data = {}
    user_question = input("Ask a question... ")
    if user_question not in question_data:
        computer_question = input("I don't know, ", (user_question))
        question_data[user_question] = computer_question
        print("Now I know the answer, ", (computer_question.capitalize), "!")

(For some reason Stack Overflow doesn't let me include the part where the function is defined so don't include that in your answers as an error.)

0 Answers
Related