Lesson 12 Python(level 2) all list methods

Published: 02 January 2024
on channel: 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...


On this page of the site you can watch the video online Lesson 12 Python(level 2) all list methods with a duration of hours minute second in good quality, which was uploaded by the user code_way 02 January 2024, share the link with friends and acquaintances, this video has already been watched 71 times on youtube and it was liked by 3 viewers. Enjoy your viewing!