When the code is run it outputs, but not as required, it returns blank on all the percentages
def income():
num= raw_input("Enter your Income: ")
print "Your income is: %d " % int(num)
return num
income= income()
def bills_expenses():
bills_kitty=0
bills_kitty=(income*(55/100))
return ("Your bills kitty should have: ", bills_kitty)
def long_term_savings():
long_term_savings_kitty=(10/100)*income
return "Your long term kitty should have: ", long_term_savings_kitty
def play_and_leisure():
play_and_leisure_kitty=(10/100)*income
return "Your play and leisure kitty should have: " , play_and_leisure_kitty
def education_personal_growth():
education_personal_growth_kitty=(10/100)*income
return "Your personal growth kitty should have: ", education_personal_growth_kitty
def pay_myself_Financial_fredom():
pay_myself_Financial_fredom_kitty=(10/100)*income
return "Your pay yourself kitty should have: ", pay_myself_Financial_fredom_kitty
def give_back_to_the_community():
give_back_to_the_community_kitty=(5/100)*income
return "Your giving back kitty should have: " , give_back_to_the_community_kitty
bills=bills_expenses()
long_term = long_term_savings()
play=play_and_leisure()
education=education_personal_growth()
mine=pay_myself_Financial_fredom()
give=give_back_to_the_community()
print bills
print long_term
print play
print education
print mine
print give
The expected results are that each method when called should output the percentages. but this is what am getting.
Enter your Income: 200
Your income is: 200
('Your bills kitty should have: ', '')
('Your long term kitty should have: ', '')
('Your play and leisure kitty should have: ', '')
('Your personal growth kitty should have: ', '')
('Your pay yourself kitty should have: ', '')
('Your giving back kitty should have: ', '')
What am I missing?