i really can’t figure out how to fix this, can someone help me?
from enum import Enum
import time
import sys
class Role(Enum):
MAGE = “mage”
WARRIOR = “warrior”
ASSASSIN = “assassin”
def slow_print(msg: str) -> None:
for character in msg:
sys.stdout.write(character)
sys.stdout.flush()
time.sleep(0.05)
print()
def main():
slow_print(“Hello!”)
slow_print(“What’s your name?”)
player_name = input("> ")
def job():
what = ("What role would you like? "
"Mage, assassin or warrior? Or more info?")
def slow_print(msg: str) -> None:
for character in what:
sys.stdout.write(character)
sys.stdout.flush()
time.sleep(0.05)
print()
role = input("> ").lower()
if role == (‘more info’):
print(“This a work of progress, so sorry :(”)
return job()
role
congrats = (“Congratulations “, player_name ,” you are now a “, role ,””)
for character in congrats:
sys.stdout.write(character)
sys.stdout.flush()
time.sleep(0.05)
print()
job()
if name == ‘main’:
main()