Win condition Tic-Tac-Toe Madness

Hello! Ive been coding for like 6-8 months (so pretty new lol) and Im currently working on a Tic-Tac-Toe game… and the win condition is driving me crazy!!! I have most of the code finished, just need the win condition… Id really like some help. Ive tried a lot of things, but im getting error after error… Im starting to thing Python hates me ;-;.

Anyway, here’s the eye sore I call my code!

Tic-Tac-Toe