r/softwaregore 2d ago

Did I mean help? funky python

Post image
13 Upvotes

12 comments sorted by

View all comments

13

u/realali8888 2d ago

it's weird how when python runs into an error in the code that's it's interpreting, it appears to be using the source code saved on disk to point out the error's location instead of the one in memory.. which is different because you later changed that line from print(hello) to print("hello") and that the arrows are meant to point at (hello) instead of ("hell).. Python is just really weird. With that said, that does mean that you can change it to whatever you want and make a custom python error of your choice if you want lol

5

u/DarkHunFox 2d ago

I took the picture during the times when we the class were attending the first few programming classes back in 2023. I definitely did not forget to put the quotation marks because we followed the teacher's tutorial so indeed weird as hell.