0

what is wrong with this statement ?

str(a) = raw_input("enter a number") print a;

25th Dec 2017, 5:49 AM
Rubeshkhannaa Sivakumar
Rubeshkhannaa Sivakumar - avatar
2 Answers
+ 5
Use input() instead of raw_input(), the input function returns a string so you don't need to call str() function to cast it to string. And wrap the print function argument within parentheses e.g. print(a). You don't need the semicolon after calling print() function anyway.
25th Dec 2017, 6:21 AM
Ipang