As a user in a class that runs Jupyter notebooks for assignments, I have access to the assignments via the web interface. I assume the assignments are stored somewhere in my per
from google.colab import files files.download("/content/data.txt")
These lines might work if you are working in a google colab or Jupyter notebook.
The first line imports the library files The second one, downloads your created file, example:"data.txt" (your file name) located in the content.