JCL

FEUP/DEI & INESC TEC

User Tools

Site Tools


teach:fpro:lectures:09

LE09: 16/11/2020

Master in Informatics and Computing Engineering
Programming Fundamentals
Instance: 2020/2021


Lecture #9 :: 16/11/2020

Goals

By the end of this class, the student should be able to:

  • Describe the use of lists, which are sequences of elements of different types
  • Enumerate the main methods available to work with lists

Content

  • Data types: Lists
    • 5.3.1 List values
    • 5.3.2 Accessing elements
    • 5.3.3 List length
    • 5.3.4 List membership
    • 5.3.5 List operations
    • 5.3.6 List slices
    • 5.3.7 Lists are mutable
    • 5.3.8 List deletion
    • 5.3.9 Objects and references
    • 5.3.10 Aliasing
    • 5.3.11 Cloning lists
    • Using zip()

Bibliography

  • Peter Wentworth, Jeffrey Elkner, Allen B. Downey, and Chris Meyers, How to Think Like a Computer Scientist — Learning with Python 3, Release 3rd Edition, 2020 [PDF] (Section 5.3)

Materials

Summary

  • Lists. Working with lists. Operations with Lists. Lists are mutable.

FPRO, 2020/21

« Previous | Index | Next »

teach/fpro/lectures/09.txt · Last modified: 03/01/2021 17:41 by Correia Lopes