I am trying to assign a variable using an if / else statement like so:
If condition1: Variable = something If condition2: Variable = something else Do stuff with variable. But the variable assignment doesn't survive outside the if statement. Is there any better way to assign variables using an if statement or exception so I don't have to write two almost identical if statements. This is probably a dumb question.
-- http://mail.python.org/mailman/listinfo/python-list