from time import * from random import * import os,sys def setup(): global name global HP global MP name = input("What is your name warrior? ") HP = randint(5,20) MP = randint(5,20) setup() global name global HP global MP global move global enemyHP print ("Welcome to the land of Middle Earth, " + name) sleep(2) print ("\nYour health is" + " " + str(HP)) print ("Your magic skill is" + " " + str(MP))