Question: Why do I keep getting none for shipping charges? def shipping_charge(item_count): cost = 0 if (item_count >=1): cost = 10.95 if (item_count >1): cost +=

 Why do I keep getting none for shipping charges? def shipping_charge(item_count):

Why do I keep getting none for shipping charges?

def shipping_charge(item_count): cost = 0 if (item_count >=1): cost = 10.95 if (item_count >1): cost += (item_count-1)*2.95 def main(): item_count = int(input("Enter amount of items: ")) fee = shipping_charge(item_count) print("Shipping charges are: ", fee) main() - Enter amount of items: 3 Shipping charges are: None 1 - def getShippingCharges (itemCount): cost = 0 if (itemCount >=1): cost = 10.95 if (itemCount > 1): cost += (itemCount-1)*2.95 def main(): itemCount = int(input("Enter number of items: ")) print("Shipping charges: ", getShipping Charges (itemCount)) main() Enter number of items: 3 Shipping charges: None

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!