Advertisement
jacklin213

Untitled

Apr 4th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. counter = 0 #Initialize counter
  2. while counter < 8: #Check for condition
  3.     print("Current number: ",  counter) # Do something
  4.     counter += 1 # Increment counter (counter += 1 is the same as counter = counter + 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement