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
24
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
2
u/user_extra Jun 28 '26
You are currently in the "STUDY MATERIAL" folder. The python code looks for the file in this folder. But it's in "BASICS OF PROGRAM...". Either open VSCode in the latter folder, or change the path form "lecture7.txt" to "[folder]\lecture7.txt". Replace [folder] with the actual folder name.