Lesson 12 Python(level 2) all list methods

Pubblicato il: 02 gennaio 2024
sul canale di: 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...


In questa pagina del sito puoi guardare il video online Lesson 12 Python(level 2) all list methods della durata di ore minuti seconda in buona qualità , che l'utente ha caricato code_way 02 gennaio 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 71 volte e gli è piaciuto 3 spettatori. Buona visione!