String Errors in Python -



String Errors in Python -

this question exact duplicate of:

update on string error in python [closed] 1 reply

so 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

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -