+ 2
The shipping cost problem is not working with me and i've carefully coded it multiple times
10 Antworten
+ 7
Logina Amr ,
your questiom seems to be incomplete. the post should include:
> a clear task description with input / output sample
> a link that points to your code try (important)
> a description what exactly your issue is, (if possible including an error message)
+ 5
Logina Amr , Danish Zubair,
the code will not run properly for 2 reasons:
> missing closing parenthesis at the function call
> "shipping cost..." has to be: "Shipping cost..."
^ ^
+ 4
Please read the following to attach your code:
https://code.sololearn.com/Wek0V1MyIR2r/?ref=app
+ 1
I just coded it multiple times and i copied the solution and it still gives me an error message even if it calculated my output the same as the expected one
+ 1
Please add full description of the problem and your attempt.
+ 1
weight=int(input())
#complete the function
def shipping_cost(weight):
print("shipping cost:",weight*5)
#function call
shipping_cost(weight
+ 1
Logina Amr I have just checked your code, and I noticed that you forgot to add the closing parenthesis, when calling the function. I have tried, and it works fine for me. Try adding the closing parenthesis and see. Let me know if it works, as if it doesn't work, I will try to find any other errors.
0
How can i put a link to my code try?
0
It's the last problem in module 6 in introduction to python course
0
I actually wrote it in the code but i guess it wasn't copied with the rest of the code