Unfortunately, Python does not accept such syntax - the assumption that <=6 is also referring to weight. You need explicitly include weight: elif weight >=2 or weight <=6:
Also, your condition doesn’t seems quite right. Do you mean weight between 2 and 6?
Suppose weight = 10, that condition will satisfy.
the error code is
File “shipping.py”, line 6
elif weight > 2 or weight <= 6:
^
SyntaxError: invalid syntax
ive had to rewrite it twice and i had it “right” so that line 6 was written the exact same way but now that i tried to fix the double answer i was getting in the output it says its not right, thanks in advance for the help.
Have you checked the indentation of this code? Was part of an if statement missed or have you tried to nest elif without an if statement (something like the following would be valid)-
if x == 3:
if x != 10: # if statement inside the other if is fine
print("yes")
# an unindented elif is fine as it part of the first if statement
elif x == "red":
print("no")