Section 2. Chapitre 2
single
Challenge 2: Sorting Lists
Glissez pour afficher le menu
Look at the example below to understand how sorting works.
1234numbers = [3, 1, 4, 1, 5] numbers.sort() print("sorted:", numbers) #prints the sorted list print('done')
Now let's move on to the task.
Tâche
Glissez pour commencer à coder
Fill the array you were given with cities you like.
- create a variable called cities;
- add at least 3 cities to it;
- print the result;
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 2
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion