1 1 i 2 EE INormalNo Spac Heading 1 Heading 2 Title Subtitle
     1 1 i |,2. EE INormal!!No Spac Heading 1 Heading 2 Title Subtitle Subtle Em. #3 on page 47 of your python programming book: Write a Tipper program where the user enters a restaurant bill total. The program should then display two amounts: a 15% tip and a 20% tip. Name your file tipper.py  
  
  Solution
Here\' a programme \"tipper.py\" which will display the tips for @ 15% and 20% rate on the bill:
def tip_amt(bill):
bill_tip_15 = bill*.15
bill_tip_20 = bill*.20
print \"tip_amount at @ 15 perc is \" + str(bill_tip_15) + \\
\" tip_amount at @ 20 perc is \" + str(bill_tip_20)
\'tried finding tip for a $40 bill
tip_amt(40)

