May-13-2018, 08:12 PM
I am new to Python and this forum and was wondering if anyone could help me with this problem I'm having with printing functions. I made a function called stats that displays the user's stats but when I put it in a while loop it doesn't work and doesn't print anything. Any help would be greatly appreciated.
This is the function:
This is the function:
def stats(): print("Health: " + str(BaseHealth), "Luck: " + str(BaseLuck), "Power: " + str(BasePower))This is the if/elif statement:
if advantage == 1: BaseHealth = 150 stats() elif advantage == 2: BaseLuck = 150 stats() elif advantage == 3: BasePower = 150 stats()