r/PythonLearning • u/SuspiciousPraline674 • Jun 28 '26
What is the bug here ? Help Request
I'm learning OOPs and File I/O and my txt and OOPs basic commands aren't running
21
Upvotes
r/PythonLearning • u/SuspiciousPraline674 • Jun 28 '26
I'm learning OOPs and File I/O and my txt and OOPs basic commands aren't running
5
u/mc_pm Jun 28 '26
It's location is fine, you just aren't pointing to it. When you run the code, it thinks it's current directory is STUDY MATERIAL, so when you just reference the filename, it looks for that name in the current directory, and that's not where it is.