Created
January 31, 2009 20:37
-
-
Save tbbooher/55653 to your computer and use it in GitHub Desktop.
This file contains 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 Year: | |
import datetime | |
def __init__(self,year_value = datetime.date.today().year): | |
#self.contents = contents or [] | |
salary = 10000 | |
# @property | |
# def year_value(self) | |
def salary(self): | |
"""this property is the total salary for the year""" | |
pass | |
def federal_income_tax(self): | |
"""calculate value of federal income tax for the year""" | |
return salary*0.3 | |
# def state_income_tax | |
# def real_estate_taxes | |
# @property | |
# def income(self): ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment