I'm a beginner.
Write to a text file.
Not reflected.
If you don't have a file, it says in the textbook that the file is created in the current directory, but I don't even know where the current directory is.
The location of the current directory can be found in os.getcwd()
.
importos
print(os.getcwd())
Save to the folder specified here.
To change folders, use os.chdir("folder path")
.
© 2025 OneMinuteCode. All rights reserved.