Sezione 2. Capitolo 2
single
Challenge 2: Sorting Lists
Scorri per mostrare il 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.
Compito
Scorri per iniziare a programmare
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;
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 2. Capitolo 2
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione