Hi guys,
I’m currently on the ‘Getting ready for Physics Class’ module, and I keep getting a syntax error at line 29 (last line). I’ve watched the walk-through video, and my code matches his code, but I still seem to be getting an error.
Can somebody help me?
My code:
train_mass = 22680
train_acceleration = 10
train_distance = 100
bomb_mass = 1
Write your code below:
#Checkpoint 1
def f_to_c(f_temp):
c_temp = (f_temp - 32) * 5/9
return c_temp
#Checkpoint 2
f100_in_celcius = f_to_c(100)
#Checkpoint 3
def c_to_f(c_temp):
f_temp = c_temp * (9/5) + 32
return f_temp
#Checkpoint 4
c0_in_farenheit = c_to_f(0)
#Checkpoint 5
def get_force(mass, acceleration):
return mass * acceleration
train_force = get_force(train_mass, train_acceleration)
print("The GE train supplies " + str(train_force) + "Newtons of force. ”)