Lesson 12 Python(level 2) all list methods

Veröffentlicht am: 02 Januar 2024
auf dem Kanal: 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...


Auf dieser Seite können Sie das Online-Video Lesson 12 Python(level 2) all list methods mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer code_way 02 Januar 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 71 Mal angesehen und es wurde von 3 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!