Challenge: Creating Dictionary
Taak
Swipe to start coding
You have to create a dictionary countries
that will have the following structure: country_name -> capital_name
. The country name is the key, and the capital is the value.
- Fill the dictionary with the following values:
France -> Paris
,Germany -> Berlin
,Ireland -> Dublin
. - In the variable
capital
, extract the capital of Germany from the dictionary.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 4. Hoofdstuk 12
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.67
Challenge: Creating Dictionary
Veeg om het menu te tonen
Taak
Swipe to start coding
You have to create a dictionary countries
that will have the following structure: country_name -> capital_name
. The country name is the key, and the capital is the value.
- Fill the dictionary with the following values:
France -> Paris
,Germany -> Berlin
,Ireland -> Dublin
. - In the variable
capital
, extract the capital of Germany from the dictionary.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Awesome!
Completion rate improved to 1.67Sectie 4. Hoofdstuk 12
single