How to save google colab notebook outputs and variables
Save your content in the current directory and execute !dir to see the content. Then follow the following code snippet:

from google.colab import files
files.download('your typical text file or what ever.txt')


For more information take a look at here.