+ 2

The shipping cost problem is not working with me and i've carefully coded it multiple times

11th Jul 2023, 5:43 PM
Logina Amr
Logina Amr - avatar
10 odpowiedzi
+ 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)
11th Jul 2023, 6:28 PM
Lothar
Lothar - avatar
+ 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..." ^ ^
12th Jul 2023, 7:23 PM
Lothar
Lothar - avatar
+ 4
Please read the following to attach your code: https://code.sololearn.com/Wek0V1MyIR2r/?ref=app
12th Jul 2023, 6:27 AM
Ausgrindtube
Ausgrindtube - avatar
+ 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
11th Jul 2023, 9:10 PM
Logina Amr
Logina Amr - avatar
+ 1
Please add full description of the problem and your attempt.
12th Jul 2023, 1:04 AM
Danish Zubair
Danish Zubair - avatar
+ 1
weight=int(input()) #complete the function def shipping_cost(weight): print("shipping cost:",weight*5) #function call shipping_cost(weight
12th Jul 2023, 6:43 AM
Logina Amr
Logina Amr - avatar
+ 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.
12th Jul 2023, 9:00 AM
Danish Zubair
Danish Zubair - avatar
0
How can i put a link to my code try?
11th Jul 2023, 9:08 PM
Logina Amr
Logina Amr - avatar
0
It's the last problem in module 6 in introduction to python course
11th Jul 2023, 9:09 PM
Logina Amr
Logina Amr - avatar
0
I actually wrote it in the code but i guess it wasn't copied with the rest of the code
12th Jul 2023, 3:54 PM
Logina Amr
Logina Amr - avatar