Avsnitt 2. Kapitel 2
single
Challenge 2: Sorting Lists
Svep för att visa menyn
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.
Uppgift
Svep för att börja koda
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;
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 2
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal