[Tutor] How do fix this error?

Poor Yorick tutor.python.org at pooryorick.com
Sat Sep 17 07:13:02 CEST 2005


Nathan Pinno wrote:

>     guess = float(raw_input(a," + ",b," = "))
> TypeError: [raw_]input expected at most 1 arguments, got 4
>  

>     guess = float(raw_input(a," + ",b," = "))
>     return answer, guess
>  
hint:  how many arguments are you passing to raw_input here?

--
Poor Yorick


More information about the Tutor mailing list