Advertisement
Guest User

Untitled

a guest
Sep 14th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. x = 0
  2.  
  3. def vote():
  4.     choice = raw_input("Would you like to vote to kick xxxx? ")
  5.     if choice == "Yes":
  6.         x += 1
  7.         print "The number of votes is:", x
  8.     else:
  9.         print "I guess not"
  10.  
  11. while x < 5:
  12.     vote()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement