Skip to content

Instantly share code, notes, and snippets.

@tbbooher
Created January 31, 2009 20:37
Show Gist options
  • Save tbbooher/55653 to your computer and use it in GitHub Desktop.
Save tbbooher/55653 to your computer and use it in GitHub Desktop.
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