String Errors in Python -
String Errors in Python -
this question exact duplicate of:
update on string error in python [closed] 1 replyso i'm new python , stackoverflow.
i practicing of stuff took in python course.
str_w = str answer_num = raw_input('insert number') if answer_num == 3: str_w = "a" print str_w this illustration , keeps telling me
traceback (most recent phone call last): file "", line 200, in nameerror: name 'str_w' not defined
you running script directly. that's why cannot see getting errors on script , especially, line.
either type str_w = " ";, str_w = str(), or str_w = str;
for future reference: python scripting learning python syntaxes @ same time. seek utilize python idle (gui) see wrong/acceptable/correct in terms of language. love it! :)
python python-2.7
Comments
Post a Comment