Jul-23-2017, 12:01 AM
Hey everyone, I need help.
I'm creating a basic script that works like this:
The user gets a pokémon, then have to input +1 to increase its level until level 10, after the condition is true the user will be able to evolve it. For now I have this:
Can someone give me some help so I can be able to finish this code please?
Thanks!
I'm creating a basic script that works like this:
The user gets a pokémon, then have to input +1 to increase its level until level 10, after the condition is true the user will be able to evolve it. For now I have this:
inicio = str(input('Input 1 to start:')) poke = 'Pokémon' level = 1 começou = 'You got a pokémon. Input +1 to increase its level!' lvlup = 'Congratulations! Your pokémon grew to level: ' if inicio == '1': aaa = str(input(começou)) começou = aaa if começou == '+1': print (lvlup + str(level)) level += 1 else: print('You have to input +1!')I have no idea how can I do the while loop in this code, because I need the code to "restart" everytime the level up message is displayed.
Can someone give me some help so I can be able to finish this code please?
Thanks!