Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def main():
- x = 1
- y = 1
- list = []
- WriteFile = open("AllNumbers3.txt","w")
- TenCheck = False
- Check100 = False
- Check50k = False
- Check100k = False
- Check500k = False
- Check1mill = False
- Check15mill = False
- Check150k = False
- Check300k = False
- while (x != 1156000):
- y = y * 2
- # print "Processing round: " + str(x)
- # list.append(y)
- WriteFile.write("\n \n \n" + "Round " + str(x) + " ##########################################################################" + "\n \n \n" + str(y))
- x += 1
- if (x > 10 and TenCheck == False):
- print "10"
- TenCheck = True
- elif (x > 100 and Check100 == False):
- print "100"
- Check100 = True
- elif (x > 50000 and Check50k == False):
- print "50,000"
- Check50k = True
- elif (x > 100000 and Check100k == False):
- print "100,000"
- Check100k = True
- elif (x > 150000 and Check150k == False):
- print "150,000"
- Check150k = True
- elif (x > 300000 and Check300k == False):
- print "300,000"
- Check300k = True
- elif (x > 500000 and Check500k == False):
- print "500,000"
- Check500k = True
- elif (x > 1000000 and Check1mill == False):
- print "1,000,000"
- Check1mill = True
- elif (x > 1050000 and Check15mill == False):
- print "1,050,000"
- Check15mill = True
- WriteFile.close()
- print "Finished"
- bye = raw_input("")
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement