from time import * from random import * import os,sys, random def setup(): global name global HP global MP name = input("what is your name worrior? ") HP = randint(5,20) MP = randint(5,20) setup() global name global HP global MP global move global enemyHP print ("welcome to the middle earth, " + Name) sleep(2) print("\nyour health is" + " " + str(HP)) print("your magic skill is" + " " + str(MP))