-
-
Save anonymous/d24c1f72547f2be45c19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
comicYears = open("comicsSold.txt", "a") | |
years = range(1945, 2015) | |
for year in years: | |
sold = random.randrange(5000, 150000000) | |
sold = str(sold) | |
comicYears.write(str(year) + ',' + sold + '\n') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment