Created
October 24, 2013 15:00
-
-
Save pmarkun/7138789 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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