How to save google colab notebook outputs and variables I want to save variables and outputs in text file with colab!

Any bright idea?
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.