Question: what the indentation for the python code to run? def decibel_test(distance, timber_loss): calculate the loss in decibels over a pre determined distance unique_number = 1.01993
what the indentation for the python code to run?
def decibel_test(distance, timber_loss):
"""calculate the loss in decibels over a pre determined distance"""
unique_number = 1.01993
rain_loss = 1.5
atmospheric_loss = rain_loss * distance
decibel_loss = timber_loss + atmospheric_loss
total_loss = decibel_loss * unique_number
return total_loss
print('distance in km')
distance=float(input())
print('wood in metres')
timber_loss = 90 * float(input())
DB_loss=decibel_test(distance,timber_loss)
print('the total decibel loss is', DB_loss)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
