PYTHON 62
Python By tycel2004 on 13th January 2024 03:48:25 AM
  1. import time
  2. import random
  3.  
  4. hero_health = 100
  5. hero_defense = 5
  6. sword_damage = 10
  7. health_after_attack = hero_health - sword_damage-hero_defense
  8.  
  9. name=input('Welcome to Arda, Please state your name. ')
  10. time.sleep(3)
  11. print(f'Welcome {name}, grab your weapon and defend yourself.')
  12. print(f'The guard grabs the sword off his belt and goes for a lunge. You take {sword_damage-hero_defense}. You have {health_after_attack}')

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.