Advertisement
Guest User

while & if else

a guest
Mar 28th, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. count=1
  2. while (count<15):
  3.     print "Number is:", count
  4.     count=count+1
  5.     if count%2==0:
  6.         print"This number is event" , count
  7.     else:
  8.         print"%d number is odd" % count
  9.  
  10.    
  11. print "Good bye"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement