I can't figure out how to do this!
I can't figure out how to save where the person clicked on to a variable. I know how to print it though. take a look at the repl and scroll to the bottom. that's where the problem is.
with open('do_re_mi.txt', 'w') as f:
f.write('Doe, a deer, a female deer\n')
f.write('Ray, a drop of golden sun\n')
The write() function takes a string and puts that content into the file stream. Although we don't store it, the write() function returns the number of characters it just entered i.e. the length of the input string.