Can't get my code to work for weeks now

I’ve been trying for like a month to get it to work and i need to present it to my teacher in about a week and really dont know what’s wrong. This is the code:

Code in python