Doubts in Quiz 10, Maps|Lambda

I have a doubt about questions 7 and 8 in Quiz 10, Maps|Lambda

please advice.


In first, remove range = , syntax is wrong.
In second question, the way you define words with is wrong.

but this is what is given in my Quiz 10 Map|Lambda

Arent the questions wrong then?

1 Like

See the syntax for question 7 and match with your own.
In question 8 also check the statement given in the question and what you wrote while running