Challenge: Updating Logic of the Function
Taak
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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 6. Hoofdstuk 10
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Suggested prompts:
Vat dit hoofdstuk samen
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 1.64
Challenge: Updating Logic of the Function
Veeg om het menu te tonen
Taak
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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Awesome!
Completion rate improved to 1.64Sectie 6. Hoofdstuk 10
single