Created
June 10, 2012 16:59
-
-
Save thomasfedb/2906613 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
class Cutie: | |
def __init__(self, name, cuteness): | |
self.name = name | |
self.cuteness = cuteness | |
def describe(self): | |
return self.name + " is " + "very " * self.cuteness + "cute" | |
print Cutie("Edmund", 10).describe() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment