Python Tutorial

Python File Handling

Source: Bro Code

File Handling

PYTHON
with open("notes.txt", "w") as f:
    f.write("Hello")

with open("notes.txt") as f:
    print(f.read())

Practice Coach are on Sturdee Pro ($20/month)

See plans