r/PythonLearning • u/surkakarot • Nov 08 '25
Help Request What’s the issue with my code?
I’m beginner in python and still really struggling because of my learning disabilities and autism, if someone can explain to me what the issue is with my code that would be much appreciated!
117
Upvotes
2
u/Odd-Government8896 Nov 08 '25 edited Nov 08 '25
You got a typo
Debugging tip: when you have that undefined error... Start here:
copy the variable that is 'undefined'
press Ctrl+F on your keyboard
most IDE's and text editors will bring up a "find" widget when you do this
paste the variable name, and find the first occurrence
If you expect the first occurrence to be somewhere else, you probably have a typo. Go to that part of your code you think it should appear first, and see what it looks like/fix it.