my_name = "Bryson"my_age = 29your_name = input ("What is her name? ")your_age = input ("What is her age? ")print ("My name is", my_name,", and I am", my_age, "years old.")print ("Your surname is", your_name,", and you are", your_age,".")print("Thank you for buying mine book,", your_name,"!")goal = intake ("What was your favorite part of the book,", your_name, "?")print("Awesome!")The error I acquire is:

goal = input ("What was your favorite part of the book,", your_name, "?")TypeError: input expected at many 1 arguments, got 3

You are watching: Typeerror: input expected at most 1 arguments, got 3


You obtained that error due to the fact that you in fact gave 3 arguments to the input duty when it was just expecting 1 (namely, a wire prompt).

In entry ("What was her favorite part of the book,", your_name, "?") ---------------------------------------- , ---------, ---The underlined components are the comma-separated arguments: a string ("What is", a variable your_name, and also another string, "?"

I think what you wanted was

goal = input("What was your favorite part of the book, " + your_name + "?")Here the concatenation operator + combine those ingredients right into a single string -- and a cable is the one dispute that entry is expecting


Try this:

goal = input ("What was your favorite part of the book, %s ?" % your_name)




many thanks for contributing response to stack Overflow!

Please be certain to answer the question. Provide details and also share her research!

But avoid

Asking for help, clarification, or responding to other answers.Making statements based upon opinion; ago them up with references or an individual experience.

To find out more, watch our advice on writing great answers.

article Your answer Discard

By clicking “Post your Answer”, you agree come our regards to service, privacy policy and also cookie policy

Not the answer you're looking for? Browse various other questions tagged python-3.x or questioning your very own question.

See more: Pdf Download Why Not Me Mindy Kaling Pdf /Epub) Why Not Me? By Mindy Kaling

site design / logo design © 2021 ridge Exchange Inc; user contributions licensed under cc by-sa. Rev2021.11.17.40781

your privacy

By clicking “Accept every cookies”, you agree ridge Exchange have the right to store cookies on your an equipment and disclose details in accordance through our Cookie Policy.