0
what is wrong with this statement ?
str(a) = raw_input("enter a number") print a;
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.