Well Ric, let me go through and point out what I wrote:
Hey Ric, we’d need to see your code my friend,
What I was saying is you need to paste the contents of the ex26.py file into here so we can look. In fact, this is something you do all the time that makes it harder for people to help you. Why won’t you show people your code? This image is not the code so, honestly, nobody can help you as much as you need without the actual code.
The next thing is, this image is actually still very grainy and hard to see no matter how large my screen is, but the most important thing that’s difficult about the image is that it’s an image. If you pasted the output from this, by doing a copy-paste of the PowerShell output, then I could actually select the characters and see if that’s a
__jars or a
The words “name _jars is not defined” means that the variable you are attempting to use names
_jars is not defined at that point in the code. It’s like you have this:
jars = 10
print(_jars / 2)
You defined the variable
jars. It is literally and only the only name for that variable. Not
__jars or anything else. Only the exact characters j, a, r, and s. You define a variable by assigning to it, like I did here with
jars = 10. This error means that you are trying to use
_jars, but you never assigned with the equal sign
_jars so it does not exist.
The fix is to find out what you actually named that variable, or to fix the name to what is already defined. Another way to look at this is you spelled it wrong.
Now, you say you can’t google for the error, but here’s what I get when I take what you highlighted and paste it into google:
I did have a video where I google for some errors and explain that how you google for the error is you type: “python” then the error into google and it comes up with most of the answers.
But, I agree Ric. You gave it a decent try, but I think there is something going on with how you are using your computer that is making it difficult for you to ask for help. There’s something about how you never seem to be able to copy-paste anything, can’t seem to see or remember important details, and can’t seem to post your code when asking for help. I think when you do go to a different book, you should definitely fix whatever it is that’s stopping you from pasting text here. I don’t know what it is, but without pasting the text you’re working on it makes it nearly impossible to help you.
Good luck Ric. I’m sure you’ll get it if you keep pushing and trying.