To calculate the amount of fuel required for a Boeing 737-800 to fly 1000km, we need to use the Specific Fuel Consumption (SFC) for the aircraft engine and the weight of the fuel.
Here's a Python function that takes in the distance to be flown, and returns the fuel required in kg for a Boeing 737-800:
main.py368 chars12 lines
Calling calculate_fuel(1000)
will return the amount of fuel required for a Boeing 737-800 to fly 1000km.
gistlibby LogSnag