So, I recently started learning python and I’m trying to give player stats on my code but I’m not to sure how to do it is there anything that could make you have a limit to the stats you choose? I currently have:
A character class, being able to choose your name and print that says “you have 5 stat points” aswell as three stat options (attack, defence and health) that need a number to be chosen but there needs a limit so if they choose 2, 2, 1 it makes five or if they did all 2s it would tell them they can’t do that because 5 is the limit
My code is:
print(f”STATS”)
print(f”You have 5 STAT points”)
attack = input(“Choose attack STATS”)
It’s the same for the other two stats aswell
Does this make sense?