UnboundLocalError - code is short & simple

2009-09-27 Thread pylearner
System Specs: Python version = 2.6.1 IDLE Computer = Win-XP, SP2 (current with all windows updates) Greetings: I have written code for two things: 1) simulate a coin toss, and 2) assign the toss result to

UnboundLocalError - (code is short & simple)

2009-09-27 Thread pylearner
Python version = 2.6.1 IDLE Computer = Win-XP, SP2 (current with all windows updates) --- Greetings: I have written code for two things: 1) simulate a coin toss, and 2) assign the toss result to a winner. Code for the simulated coin t