mirror of
https://github.com/kristoferssolo/School.git
synced 2025-10-21 20:10:38 +00:00
12 lines
235 B
Python
12 lines
235 B
Python
def consuption(consuption: float, distance: int, price: float = 1.34):
|
|
result = distance / 100 * consuption * price
|
|
return round(result, 3)
|
|
|
|
|
|
def main():
|
|
print(consuption(7.2, 7200))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|