pdb-tutorial icon indicating copy to clipboard operation
pdb-tutorial copied to clipboard

Bug fixes

Open ckiefer0 opened this issue 8 years ago • 2 comments

In the solution for runner.py runner.consecutive_wins is not defined and it should be reset if a wrong answer is given.

Furthermore, I get a NameError if I type 'y' to continue playing so I would suggest using raw_input() in both the excercise and the solution.

ckiefer0 avatar May 16 '17 09:05 ckiefer0

I also faced this error while trying this tutorial and as per @ckiefer0's suggestion using raw_input will obviously fix it for python 2.x versions but will break it for python 3 as raw_input() is completely replaced by input() and will end up raising NameError: name 'raw_input' is not defined.

abhinav-shrivastava avatar Aug 03 '18 08:08 abhinav-shrivastava

The solution also does not reroll the dice. It may be better to remove solutions entirely if it doesn't work. It only confuses the readers.

kimsin98 avatar Jan 25 '22 09:01 kimsin98