Just made up a different way of doing the group shipping in sals shipping

Here is my code, its simple, but i wanted more different, here is my code:`

weight = 21.8
#ground shipping
if weight <= 10:
  cost_ground = weight * 2 + 10
elif weight <= 4:
  cost_ground = weight * 3 + 10
elif weight <= 2:
  cost_ground = weight * 2 + 5
else:
  cost_ground = weight * 2 + 10

  print(cost_ground)

its prints 53.6, which is 53.60

this is because i used print(cost_ground), am i right?

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.