Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge 2: Sorting Lists | Lists, Loops And Functions
Python: For Beginners
Seção 2. Capítulo 2
single

single

Challenge 2: Sorting Lists

Deslize para mostrar o menu

Look at the example below to understand how sorting works.

1234
numbers = [3, 1, 4, 1, 5] numbers.sort() print("sorted:", numbers) #prints the sorted list print('done')

Now let's move on to the task.

Tarefa

Deslize para começar a programar

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;

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 2
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

some-alt