Advertisement
thatguyandrew1992

Giant Text File

Dec 1st, 2011
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. def main():
  2. x = 1
  3. y = 1
  4. list = []
  5. WriteFile = open("AllNumbers3.txt","w")
  6. TenCheck = False
  7. Check100 = False
  8. Check50k = False
  9. Check100k = False
  10. Check500k = False
  11. Check1mill = False
  12. Check15mill = False
  13. Check150k = False
  14. Check300k = False
  15. while (x != 1156000):
  16. y = y * 2
  17. # print "Processing round: " + str(x)
  18. # list.append(y)
  19. WriteFile.write("\n \n \n" + "Round " + str(x) + " ##########################################################################" + "\n \n \n" + str(y))
  20. x += 1
  21.  
  22.  
  23. if (x > 10 and TenCheck == False):
  24. print "10"
  25. TenCheck = True
  26. elif (x > 100 and Check100 == False):
  27. print "100"
  28. Check100 = True
  29. elif (x > 50000 and Check50k == False):
  30. print "50,000"
  31. Check50k = True
  32. elif (x > 100000 and Check100k == False):
  33. print "100,000"
  34. Check100k = True
  35. elif (x > 150000 and Check150k == False):
  36. print "150,000"
  37. Check150k = True
  38. elif (x > 300000 and Check300k == False):
  39. print "300,000"
  40. Check300k = True
  41. elif (x > 500000 and Check500k == False):
  42. print "500,000"
  43. Check500k = True
  44. elif (x > 1000000 and Check1mill == False):
  45. print "1,000,000"
  46. Check1mill = True
  47. elif (x > 1050000 and Check15mill == False):
  48. print "1,050,000"
  49. Check15mill = True
  50. WriteFile.close()
  51.  
  52.  
  53. print "Finished"
  54. bye = raw_input("")
  55. main()
  56.  
  57.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement