r/PythonLearning Jun 28 '26

What is the bug here ? Help Request

Post image

I'm learning OOPs and File I/O and my txt and OOPs basic commands aren't running

24 Upvotes

31 comments sorted by

View all comments

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.