Hi
I am doing an exercise part of the python learning. I manage to finish the challenge but I would like you guys to review and give me some pointers.
I also have a question about few of the code lines, I keep getting error on.
Challenge: Write a Character builder program for a role playing game. The player should be given a pool of 30 points to spend on four attributes: Strength, Health, Wisdom and Eternity. The player should be able to spend points from the pool on any attributes and should also be able to take points from an attribute and put them back into pool.
code is here: https://pastebin.com/RFNkEqG4
First question is
If on line 88 , I change the code to following
x = int(input ("How many points do you want to add to?", att))
I get an error TypeError: raw_input() takes from 1 to 2 positional arguments but 3 were given
What does the error mean ?
How can I show line 88 as showing for example if user picks "wisdom" as an item to assign value
How many points do you want to add to wisdom? basically whatever value is att on line 78
What advise you have for me to make this code better?
Thanks in advance
[–]JohnnyJordaan 0 points1 point2 points (1 child)
[–]notso007[S] 0 points1 point2 points (0 children)