Ask coding questions
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
@SixBeepsThank you so much! That worked
Just do guess+=1 instead of global guess+=1, same thing all the global variables
@TheDNAHeroWhen we take global out, it says the variable can't be accessed.