I'm a beginner in python programming, been doing it for only a few weeks and I decided to make a tic-tac-toe game in the python interpreter. I'm looking for feedback on the program and any way I can improve it and shorten it and point out inefficiencies since I've done everything I can to get rid of all errors I could think of.
I would appreciate if it was advice useful to my level and not all about high-level python code, though I wouldn't mind some of it if its a very useful concept to use in this program and others.
Here's the code: