Write the python program that finds the total fuel cost of the vehicle according to the amount of fuel spent per km entered on the keyboard, the price per liter of fuel and the total km made by the vehicle. Example: Fuel consumption per km (lt) 0.1 Price of 1 liter of fuel (YTL) 2.080 The total distance covered by the vehicle (km) 1000 --------------------------------- Total fuel cost 108 YTL
1)Write the python
Example:
Fuel consumption per km (lt) 0.1
Price of 1 liter of fuel (YTL) 2.080
The total distance covered by the vehicle (km) 1000
---------------------------------
Total fuel cost 108 YTL
2) In Python Suppose that among the four (4) digit (abcd) positive integers, those that have the property of multiplying the first two digits and the last two digits, equaling the product of the substituted form of their digits (ab * cd = ba * dc), are called Inverted Numbers. Write the program that says whether a 4-digit number entered from the keyboard is a Reverse Number.
For example, the number 1242 is an Inverted number. 12 * 42 = 21 * 24
EXAMPLE 1:
Enter the four-digit number: 6213
------------------------------------
The number entered is an Inverted number
EXAMPLE 2:
Enter the four-digit number: 1234
------------------------------------
The number entered is not an inverted number
Step by step
Solved in 3 steps