Guest User

Untitled

a guest
Jul 18th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. i = 0
  2. numbers = []
  3. dataset = 6
  4. def whileloop(empty):
  5.     while i < dataset:
  6.         print "at the top i is %d" % i
  7.         numbers.append(i)
  8.  
  9.         i = i + 1
  10.         print "numbers now: ", numbers
  11.         print "at the bottom i is now %d" % i
  12.  
  13.  
  14.     print "the numbers: "
  15.  
  16.     for num in numbers:
  17.         print num
Add Comment
Please, Sign In to add comment