-
Book Overview & Buying
-
Table Of Contents
The Python Workshop
By :
As discussed before, since a list is a type of sequence, it supports all sequence operations and methods.
Lists are one of the best data structures to use. Python provides a set of list methods that makes it easy for us to store and retrieve values in order to maintain, update, and extract data. These common operations are what Python programmers perform, including slicing, sorting, appending, searching, inserting, and removing data.
The best way to understand this is to see them at work. You will learn about these handy list methods in the following exercises.
In this exercise, you are going to use the basic functions of lists to check the size of a list, combining lists and duplicating lists as well. Follow these steps:
shopping = ["bread","milk", "eggs"]
len function.print(len(shopping...
Change the font size
Change margin width
Change background colour