Preparing your experience...
Loading scripts and resources
Preparing your experience...
Loading scripts and resources
Walk through building a simple note-taking app. Problem: 'Create a program that saves and loads notes.' Step 1 'Write to file': with open('notes.txt', 'w') as f: f.write('My first note\\n'). Explain: 'w' = write (creates/overwrites). 'with' automatically closes the file. \\n = newline. Step 2 'Append
12
Likes
0
Remixes
0
Comments