Write a small script that:
- Writes the string
"line one\nline two\n"to/tmp/notes.txtusing awithblock in write mode. - Reads the file back with another
withblock and prints its contents stripped of trailing whitespace.
Expected output:
line one
line two