#๐Ÿ”’ i haven't done python months, could i get help with some issues?

13 messages ยท Page 1 of 1 (latest)

austere flame
#
#introduction
print('''The world as you know it has fallen to creatures of all shapes and sizes infected by an sentient infectious tar. Your are one of the last humans trying to survive the Tarlord's reign. Avoid monsters, human and not. Good luck.''')


#what keeps the game going
while True:
    print('''You encountered an infected on your travels, prepare yourself.''')
    player_move = input("stab, leave or heal:   ")
    enemy_options = ['scratched', 'punched', 'bit']
    cpu = random.choice(enemy_options)
    if leave == 1:
        break
    leave += 1

    
    
    if player_move == "stab":
        enemy_health = enemy_health - 20
        print(f'it has {enemy_health} left')

    elif player_move == "leave":
        print("You ran.")
        break
    elif player_move == 'heal':
        health = health + 30
    else:
        print('type a valid action')
        
    print("It", cpu)```
worthy trenchBOT
#

@austere flame

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

torpid wigeon
#

What issues do you have?

austere flame
#

just talked to someone else but it turns out the only issue is that i didn't have anything left for the code to do

torpid wigeon
#

Cool ๐Ÿ˜„

austere flame
#

could you stick around just in case?

torpid wigeon
#

sure

austere flame
#

thanks, i'll ping if i need anything

torpid wigeon
#

you may need to @ me

#

yes

austere flame
#

yeah

worthy trenchBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.