This is my Python 2.7 REPL (The best I can do as REPLIT DELETED PYTHON 2.7!!!) and I have an "error"
I have a "string error"? Global string not defined? Huh? I have an input and whatever I input it gives an error.
You need to name your main file
main.py, or it'll not even run, but I see that that's solved. Now, here is the error:
Whenever you make a global variable, you need to initialize that its global FIRST, then assign it.
What you've down is quite the opposite.
raw_input isn't defined, so I suggest you change it to
Edit: Now you can mark this as answered!
Python 2.7 is no longer supported, as it was sunsetted two years ago. You should use python3 nowadays