Challenge: Updating Logic of the Function
Tehtävä
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/elsestatement to verify if the key exists in the dictionary. - If the key isn't found, display the message
'There is no information about'followed by the value ofkey. - If the key exists, continue with the steps from the previous challenge to show the individual's details.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 6. Luku 10
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Mahtavaa!
Completion arvosana parantunut arvoon 1.67
Challenge: Updating Logic of the Function
Pyyhkäise näyttääksesi valikon
Tehtävä
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/elsestatement to verify if the key exists in the dictionary. - If the key isn't found, display the message
'There is no information about'followed by the value ofkey. - If the key exists, continue with the steps from the previous challenge to show the individual's details.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 6. Luku 10
single