Sounds like trying run Python2 code in Python3, did you try to run 2to3.py script for the code? Try changing strings to bytes: b''
pyTony
pyMod
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
pyTony
pyMod
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
You run it from command line, not from IDLE:
It can be converted to Python 3.x code via 2to3 on the command line:
$ 2to3 example.py
2to3.py is located in \Tools\Scripts directory, you may need to give the command as
python <Python32 install dir>\Tools\Scripts\2to3.py <name of the file>
if that directory is not in your path. If you want to be able to ignore .py extension from invokingscripts, you can put .PY to PATHEXT if you are using Windows.
pyTony
pyMod
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
I do not understand whath you are trying to do, also I hate the way you write whips = int(1) instead of simply whips = 1. Also you do not put functions first and import math even you are not using it etc. Are you Java coder?
pyTony
pyMod
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852