Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Challenge: Creating Dictionary | Other Data Types in Python
Introduction to Python(ihor)

bookChallenge: 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?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 4. Hoofdstuk 12
single

single

Vraag AI

expand

Vraag AI

ChatGPT

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

close

Awesome!

Completion rate improved to 1.67

bookChallenge: 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

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

close

Awesome!

Completion rate improved to 1.67
Sectie 4. Hoofdstuk 12
single

single

some-alt