Can someone debug this code for me thanks, its in python 3

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()

please format your code or indentation can’t be seen, and that is incredibly important for Python.

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

Please use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks are not single quotes.

markdown_Forums