Lesson 12 Python(level 2) all list methods

Publicado el: 02 enero 2024
en el canal de: code_way
71
3

Hi, thanks for viewing.

Here's how to install PyCharm and Python:    • Installing Python and PyCharm on macO...  

Here's how to work with Git:    • GitHub UI: Edit and download code wit...  

Python for beginners:    • Lesson 2 Python: Data input (input), ...  

Python level 2:    • Python level 2  

Tasks for better understanding:
Task 1
Create a list called grades with grade values (for example, 5, 3, 4, 2, 5). Remove all low grades (less than or equal to 3) using a loop, then sort the list. Print the updated list.
Task 2
Create 2 lists with several different words. Merge them using a list method. Print each word with its length (number of characters) in the format: "word (length)". Use a for loop for this task.
Task 3
Create a list (for example, like this: ["apple", "grape", "kiwi", "pear", "melon", "banana", "mango"]). Using the method shown in the lesson video, sort the list in ascending order based on the length of words, and then print it to the screen.

Test based on this lesson:
https://docs.google.com/forms/d/e/1FA...


En esta página del sitio puede ver el video en línea Lesson 12 Python(level 2) all list methods de Duración hora minuto segunda en buena calidad , que subió el usuario code_way 02 enero 2024, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 71 veces y le gustó 3 a los espectadores. Disfruta viendo!