Completing assignemnt in Module 2 of AI Python for Beginners

Hi… The chatbot isn’t providing correct code (and explaination) to complete this assignment. My thought was that this is how a non-engineer can learn the subjects Can you suggest what I’m doing wrong? I can’t seem to complete Question 3:

### START CODE HERE ###

    # mentor edit: code removed

### END CODE HERE ###

If you’re writing Python code, you have to indent the lines that come after the “if” or “else” clause. That’s how Python creates blocks of code.

Also, please do not share your code on the forum. That’s not allowed by the Code of Conduct.

I’ll edit the thread to clean that up.

Thank you Tom:)

1 Like

Hi @daverawlingssf,

For the assignments, the chatbot is instructed to not give you the answers. It is there to help in case you need to remember something, fix mistakes etc, but not give the answers. This is why it might behave differently than the chatbots of the lessons.

For the assignments, you are expected to remember what you learned in the lessons so that you can implement it, thus, graded assignments.

Best,
Mubsi

1 Like

Ah, thanks Mubsi! Have a great day!

2 Likes

Hey Mubsi,

Just finished module 4… I may have missed it, but think your answer here should be explained b4 module 2, perhaps at the end of module 1 so that your users understand this… It confused me for sure (and led to some frustration, as my thinking was the chatbots proviided answers so no staring at a ‘:’ when I needed a “,”) Thank you! Dave