Dec-16-2016, 08:47 PM
Two other things.
First, you also have this
The second thing, and not a game changer, but you don't need the parenthesis in you're while, if's and elif's
First, you also have this
elif (command == "dice"): print(diceValue) print()but 'diceValue' is not available here. Perhaps add it here?
return hit_points - diceValue, diceValuewhich will return a tupple, which you can access.
The second thing, and not a game changer, but you don't need the parenthesis in you're while, if's and elif's
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition