+ 1
what is wrong with this code? s = input('enter number: ') print (s)
5 Antworten
+ 7
@Kannan Vellaichami, raw_input() and input() are Python 2 functions which accepts input as a string and integer respectively. Python 3 uses input() function only.
@Lego guy, the code is correct. When you run it, it will request for user input and then print the input.
+ 3
nevermind. it was just a problem with my python interpreter
+ 2
use raw_input instead of just input
+ 2
thanks guys
+ 1
nothing is wrong . do you face an error ?