0
I have carefully coded the shipping cost case. Why is it not working?
20 Respuestas
+ 8
Are you sure you should have an underscore "_" in the print statement?
Can you copy the task here too?
+ 5
Share your code
+ 3
Biyensa Negera the code is working it shows 'shipping cost' then what's your question?
+ 3
Logina Amr we also don't know what's wrong unless we see your code. Can you attach it like the following:
https://code.sololearn.com/Wek0V1MyIR2r/?ref=app
+ 3
I believe you're missing a little detail: "Shipping" or "shipping" for the print?
+ 2
Thank you for your help! The problem is an underscore It worked now
+ 2
Ismael Feria, share your code
+ 2
Please help with this its been a week and i cant solve it
#taking the weight as input
weight=int(input())
#complete the function
def shipping_cost(weight):
print("shipping cost:",weight*5)
#function call
shipping_cost(weight)
+ 2
Hi Junior Luiz , what isn't working? Can you share your code as per this guide:
https://code.sololearn.com/Wek0V1MyIR2r/?ref=app
+ 1
weight=int(input())
def shipping_cost(weight):
print("Shipping_cost:", weight*5)
shipping_cost(weight)
+ 1
It's not working for me either and i've checked everything i don't know what's wrong
0
Logina Amr check the underscore
0
Which one?
0
I cheked the underscore and its not working help with this please i am stuck in this excersise
0
#taking the weight as input
weight = int(input())
#complete the function
def shipping_cost(weight):
print("shipping cost:",weight*5)
#function call
shipping_cost(weight)
0
Isnt wok
0
Work
0
Expected output is 25
0
#taking the weight as input
weight = int(input())
#complete the function
def shipping_cost(weight):
print(weight*5)
#function call
shipping_cost(weight)
answer
0
#taking the weight as input
weight = int(input())
cpk = 5
#complete the function
def shipping_cost(weight):
weight = weight * cpk
print (weight)
return weight
#function call
shipping_cost(weight)