Skip to content

Instantly share code, notes, and snippets.

@pgainda
Created October 28, 2013 18:17
Show Gist options
  • Save pgainda/7201822 to your computer and use it in GitHub Desktop.
Save pgainda/7201822 to your computer and use it in GitHub Desktop.
my_list = [i**2 for i in range(1,11)]
f = open("output.txt", "w")
for item in my_list:
f.write(str(item) + "\n")
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment