I just started learning about python so I’m not fluent in coding yet. I don’t understand why my code is wrong. Can anyone give me the code of C1W3 for my reference? Thank you so much.


What is the error you are getting?

Looks like I’m not writing the code properly

Can you help me through this exercise?

Yes I can!

Can you send me your code in a direct message?

{Assignment sharing is in violation of coursera honor code. Assignment code removed by moderator}

Hope you can help me fix them. I have tried many times for about 4 and a half hours but still not getting the right result. Thank you very much.

1, 2, 5, 6 look ok.

But it looks like you’ve left many lines with None in 3 and 4.

Is there a specific topic that’s difficult to understand in those sections?
It’s difficult to help if I don’t know what you’ve tried.
There are hints available in the lab as well.

Note for the future: The code in this thread needs to be deleted.

Hi @songphuong,

Sharing assignment code is in violation of the coursera honor code and is also prohibited here. Please don’t do it yourself and don’t ask the others to do it. Also, we can’t fix the code for you because it is your assignment.

I recommend you to follow Sam’s suggestion, understand the requirement of those exercises, and replace those None with your own work. If you have problem understanding the requirement, please post your specific question to the community. If you are encountering any error message, please post your question together with the whole Error Traceback in screenshots to the community.