diff --git a/main.py b/main.py new file mode 100644 index 0000000..62d9f52 --- /dev/null +++ b/main.py @@ -0,0 +1,15 @@ +def Trip (): + km = float (input ("Type the distance in km: ")) + lpkm = float (input ("Type the liters per kilometer usage by the car: ")) + ppl = float (input ("Type the price per liter: ")) + + total_cost = km * lpkm * ppl + print (total_cost) + + + +def main(): + Trip() + +if __name__ == '__main__': + main() \ No newline at end of file