Jack and his three friends have decided to go for a trip by sharing the expenses of the fuel equally.
Write a Python program to calculate the amount (in Rs) each of them need to put in for the complete (both to and fro) journey.
The program should also display True, if the amount to be paid by each person is divisible by 5, otherwise it should display False. (Hint: Use the relational operators in print statement.)
Assume that mileage of the vehicle, amount per litre of fuel and distance for one way are given.
Test your code by using the given sample inputs.
Verify your code by using the 2nd sample input(highlighted) given below:
Sample Input Expected Output
Mileage of the vehicle (km/litre of fuel) Amount per litre of fuel (Rs) Distance for one way (kms) 12 65 96 260.0
True
12 40 190 Note: You have to always submit your assignments/exercises!!
Estimated time: 30 minutes
Answers
Answered by
1
tab super body us is sadhu Jesus Suzuki hours usual s Susie
Similar questions
English,
4 months ago
English,
4 months ago
Science,
8 months ago
Hindi,
11 months ago
Computer Science,
11 months ago