Name 'guess' is not defined

It would help to see the code but that error usually happens when you try to use a variable that has not been assigned a value. For example, you will get the error if you do

x = y + 5

but not if you do

y = 9
x = y + 5
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.