Below code is throwing error in the editor saying “invalid syntax” .
am going out of my brains , i could not find what mistake am doing .
could anybody please help me here
def ground_shipping(weight): if weight <= 2: cost= 1.5 elif weight <= 6: cost=3
File “script.py”, line 6
elif weight <= 6:
SyntaxError: invalid syntax