Input Expected At Most 1 Arguments, Got 3
Can someone please help? I just started and it's not working: myName = input('Hi, what is your name?') myVar = input('Hello', myName,', how are you?') if(myVar == 'Good'): pri
Solution 1:
Here is your problem:
input("Hello", myName,", how are you?")
The input
function takes only one argument, the prompt. Here you are passing three. Python doesn't know what to do with the other two.
Pass one argument instead:
input("Hello " + myname + ", how are you?")
Solution 2:
maybe this solves your problem
myVar = input("Hello"+ myName + "how are you?")
Solution 3:
You need to make it into one argument instead of 3.Try this. i have had a similar error before and this did the trick!
myVar = input("Hello" + myName + "how are you")
Solution 4:
Also you could just do:
print("Hello,",myName,"How are you?")
myVar=input()
works just fine
Post a Comment for "Input Expected At Most 1 Arguments, Got 3"