cost = input(\"Enter the price of the dinner:) rating - input(\"Enter the rating of the dinner\") tip = 0.0 if int(rating) == 1: tip = 20.0 elif int(rating) == 2: tip = 15.0 elif int(rating) == 3: tip = 10.0 print float(cost)*(tip/100) Solution cost = input(\"Enter the price of the dinner:) rating - input(\"Enter the rating of the dinner\") tip = 0.0 if int(rating) == 1: tip = 20.0 elif int(rating) == 2: tip = 15.0 elif int(rating) == 3: tip = 10.0 print float(cost)*(tip/100).