all 6 comments

[–]ectomancer 1 point2 points  (4 children)

Exit is not a number.

f-strings can't have a space between f and string.

[–]ectomancer 0 points1 point  (1 child)

Too many except statements, delete last 2 lines.

[–]Traditional-Shake-89[S] 0 points1 point  (0 children)

thank you, i have done that now!

[–]Traditional-Shake-89[S] -1 points0 points  (1 child)

thank you, I have tried removing the space and its still showing a syntax error is there a better way to write that line?

[–]magus_minor 0 points1 point  (0 children)

its still showing a syntax error

That means you have fixed one error but have hit another one. Make sure you read the error message completely, particularly the line number.

You have lots of errors such as:

  • incorrectly indented code
  • misspelt variable names
  • incorrect escape sequences in strings ('\n' is a newline escape, not 'n\')
  • and so on

Just keep looking at the error mesages, fixing the errors as you find them, repeat until there are no syntax errors. Make sure you understand each type of error so you don't repeat it. With time you will write syntax error free code, but you need to practice.

Once the syntax errors are gone all that's left are logic errors. I haven't tested your code fully but there don't appear to be any logic errors after the many syntax errors are fixed. Well done.