Challenge: Updating Logic of the Function
Task
Swipe to start coding
Update the previous function to account for situations where the entered name isn't found in the dictionary.
- Within the function, implement an
if
/else
statement to verify if the name exists in the dictionary. - If the name isn't found, display the message
'There is no information about'
followed by the value ofname
. - If the name exists, continue with the steps from the previous challenge to show the individual's details.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 6. ChapterΒ 10
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 1.64
Challenge: Updating Logic of the Function
Swipe to show menu
Task
Swipe to start coding
Update the previous function to account for situations where the entered name isn't found in the dictionary.
- Within the function, implement an
if
/else
statement to verify if the name exists in the dictionary. - If the name isn't found, display the message
'There is no information about'
followed by the value ofname
. - If the name exists, continue with the steps from the previous challenge to show the individual's details.
Solution
Everything was clear?
Thanks for your feedback!
Awesome!
Completion rate improved to 1.64SectionΒ 6. ChapterΒ 10
single