This is my student's code, and we can't figure out where the problem is.
My Python knowledge is subpar, but I believe you need to globalize the variable first before performing operations on it, instead of doing it at the same time. So:
guess += 1
Thank you so much! That worked
Just do guess+=1 instead of global guess+=1, same thing all the global variables
When we take global out, it says the variable can't be accessed.