Skip to content

Instantly share code, notes, and snippets.

@pmarkun
Created October 24, 2013 15:00
Show Gist options
  • Save pmarkun/7138789 to your computer and use it in GitHub Desktop.
Save pmarkun/7138789 to your computer and use it in GitHub Desktop.
from time import sleep
class Party:
def __init__(self, name, people):
self.name = name
self.allnight = True
self.people = people
people = ["Capi", "Mobi", "Pedro", "Marcela"]
party = Party("Python com Pimenta", people)
while party.allnight:
if "Marcela" in party.people:
sleep(10) # Dorme ae :D
print "All night party!!!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment