How come I get blank for this?

I am coding doing a lesson and when I enter this code the terminal is blank Instead of showing anything or printing anything:

weight = 1.5
if weight <= 2:
cost_ground = weight * 1.5 + 20
elif weight <= 6:
cost_ground = weight * 3 + 20
elif weight <= 10:
cost_ground = weight * 4 + 20
elif weight > 10:
cost_ground = weight * 4.75 + 20
print(“Ground Shipping”,
cost_ground)
cost_ground_premium = 125.00
print(“Ground Shipping Premium $”,
cost_ground_premium)
#Drone Shipping

if weight <= 2:
cost_drone = weight * 4.50
elif weight <= 6:
cost_drone = weight * 9
elif weight <= 10:
cost_drone = weight * 12
else:
cost_drone = weight * 14.25
print(“Drone shipping $”,
cost_drone)

In Python, indentation is very important. When you post code directly into the forums, the code loses formatting and indentation. This makes it difficult to spot any potential issues or mistakes.

To preserve code formatting in forum posts, see: [How to] Format code in posts

1 Like