https://www.codecademy.com/workspaces/63464766da720aa6a36b1bba
- The indentations of the elif and else are not correct. The elif and else should be at the same indentation level as the if.
if (condition):
// do stuff
elif (some other condition):
// do some stuff
else:
// more stuff
- On lines 9 and 12 of your workspace, you are missing the
weight
cost_ground = * 4 + 20 // Line 9
cost_ground = * 4.75 + 20 // Line 12
- The else doesn’t take a condition.
// You wrote:
else weight:
// It should be:
else:
2 Likes
This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.