Now, instead of creating a new file, you updated the existing code.py
file:
Great work! To create a new file or open an existing one, use .open()
.
Just like when creating a new file, you need to open()
, write()
, and close()
a file to update it.