Udemy exercise 5

Coding exercise 5 after lecture 49

Udemy Exercise

The actual problem is above. My answers are below the last 3 comments.
I was sure my answer was correct however it was flagged as wrong!
Another student named Sridivya had a similar problem The instructor replied…


Boris Paskhaver Boris — InstructorAnswer 2 months ago
The code is looking for you to use the square bracket syntax instead.


Really? Where does it say that?
As you can see my answer actually used both methods to show I was paying attention.
My last answer used the square bracket syntax, which I used to show I was aware of both methods.
Nowhere does it say to use the bracket method!!!!
Also despite what they said my answer was NOT wrong.
Because you can easily type it into a Jupyter notebook and test it…and I did…and it works…and most importantly it was just taught!
He said his preferred way was to use brackets. But the Coding exercise didn’t say do it the way the instructor prefers.

In the grand scheme of things it’s a small complaint. My first after almost 50 steps. The course has been very good!