Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge 2: Sorting Lists | Lists, Loops And Functions
Python: For Beginners
Sección 2. Capítulo 2
single

single

Challenge 2: Sorting Lists

Desliza para mostrar el menú

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.

Tarea

Desliza para comenzar 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;

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 2
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

some-alt