
#takes in user input and prints out the tip for the total bsaed on the rate
def calculateTip():
    total = float(input("Please enter the total amount as a float: "))
    rate  = float(input("Please enter the tax rate: "))
    tip = total * rate
    print "The tip is: ", tip 
    return tip

calculateTip()

@@ -90,16 +90,29 @@
 eTip():%0A
+    try:%0A    
     tota
@@ -113,32 +113,36 @@
   total = float(
+raw_
 input(%22Please en
@@ -165,25 +165,18 @@
 ount
- as a float
 : %22))%0A
+    
     
@@ -189,16 +189,20 @@
 = float(
+raw_
 input(%22P
@@ -225,22 +225,122 @@
 tax rate
+ (ie .15)
 : %22))%0A
+    except:%0A        print %22Whoops, please enter a correct value next time!%22%0A        exit()%0A
     tip 
@@ -383,17 +383,16 @@
 : %22, tip
- 
 %0A    ret

add error handling