Typeerror Input Expected At Most 1 Arguments Got 3

[Solved] Typeerror Input Expected At Most 1 Arguments Got 3 | Scala - Code Explorer | yomemimo.com
Question : TypeError: input expected at most 1 arguments, got 3

Answered by : terrible-tortoise-q32si8cv1kgm

#Problematic code: answer = input("Is it", guess, "?")
#input only accepts one argument, you are passing it 3. You need to use string
#formatting or concatenation to make it one argument:
answer = input("Is it {} ?".format(guess))
#You were confusing this with the print() function, which does indeed take more
#than one argument and will concatenate the values into one string for you.

Source : | Last Update : Mon, 13 Dec 21

Answers related to typeerror input expected at most 1 arguments got 3

Code Explorer Popular Question For Scala