• + 6 comments

    meal_cost = float(input())

        tip_percent = int(input())
    
        tax_percent = int(input())
    
        tip = (meal_cost * tip_percent) / 100
        tax = (meal_cost * tax_percent) / 100
        totalCost = int(round(meal_cost + tip + tax))
        print(totalCost)
    

    ^paste the above code in the function defintion of function 'solve' above,..,, not inside main