I am having trouble with the get_force function in steps 5-6. Every time I try to test it I get this error:
Traceback (most recent call last): File "script.py", line 24, in <module> train_force = get_force(train_mass, train_acceleration) File "script.py", line 22, in get_force return mass * acceleration NameError: name 'acceleration' is not defined
This is my code so far, what am I doing wrong?
# Use the Force train_mass = 22680 train_acceleration = 10 train_distance = 100 bomb_mass = 1 # Turn up the Temperature def f_to_c(f_temp): return (f_temp - 32) * 5/9 f100_in_celsius = f_to_c(100) def c_to_f(c_temp): return (c_temp * 9/5) + 32 c0_in_fahrenheit = c_to_f(0) print(c0_in_fahrenheit) def get_force(mass, accelaration): return mass * acceleration train_force = get_force(train_mass, train_acceleration) print(train_force)