Hey guys, I am looking on my code and I can not get around what is wrong with my syntax. I am doing this kind of syntax in elif statement for the first time so I do not precisely know what I can not do in this kind of statement. In code bellow I get syntax error of my first elif statement. Do you have an idea what could be wrong?
def optimal_shiping(weight, drone = drone_shipping(weight), ground = ground_shipping(weight), premium = premium_ground_shipping):
if (drone < ground and drone < premium):
print('Drone Shipping')
return drone
elif (ground < drone and ground < premium):
print('Ground Shipping')
return ground
else:
print('Premium Ground Shipping')
return premium
Thank you for answers.