Why is my code wrong? Input line appears twice


#1

  1. Why the input (raw input) appears twice in the result area (black area). When I run the code, it shows "Number: ", I type 434, it then prints 11, which is perfect. But it also shows another line "Number: ", which forces me to input another one? Can anyone please explain why?

  2. Why does it say my code seems off while it works pretty well.


#2

the code needs to be validated by codecademy, and its excepts values as argument on function call. It doesn’t expect a raw_input within the function

if you want to do this, place raw_input outside the function, and pass the result of raw_input as argument on function call


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.