Function Junction


#1

Please tell me what's wrong

def tax(bill):
"""Rambara"""
bill *= 1.08
print "Eggs" % bill
return bill

def tip(bill):
"""Xumbrega"""
bill *= 1.15
print "Eggs" % bill
return bill

meal_cost = 100
meal_with_tax = tax(meal_cost)
meal_with_tip = tip(meal_with_tax)


#2

Hi!

Please check out this thread What good are fnctions?


#3

I've checked, but that's still saying this is wrong. (i'm brazilian, my english is not very good)


#4

Okay.

Kindly post what you've tried out. Use the code format feature while posting your code.

Thank you! :slight_smile:


#5

Okay!

Look for both instance of

you could do:

print "Eggs: %f" % bill

so that you return a float format or

print "Eggs: %d" % bill

to return integer.

Let me know if this resolves.


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.