Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- y=1000000
- for x in range(y):
- if x % 100000 == 0 and x!=0 or x==y :
- print " Iteration %d out of %dr" % (x,y)
- Iteration 100000 out of 1000000
- Iteration 200000 out of 1000000
- Iteration 300000 out of 1000000
- Iteration 400000 out of 1000000
- Iteration 500000 out of 1000000
- ...
- for x in range(1000000):
- print "%dr" % x,
- print s ,
- print " Iteration %d out of %dr" % (x,y) ,
- print x, # 2.x: Trailing comma suppresses newline
- print(x, end="") # 3.x: Appends a space instead of a newline
- sys.stdout.write(" Iteration %d out of %dr" % (x,y))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement