J. Correia Lopes

FEUP/DEI & INESC TEC

User Tools

Site Tools


teach:fpro:lectures:12

T: 08/11/2018

Master in Informatics and Computing Engineering
Programming Fundamentals
Instance: 2018/2019


Lecture #12 :: 08/11/2018

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

  1. Data types
    • 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()
    • Exercises

Bibliography

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

Materials

  • J. Correia Lopes, Script and illustrations, 12-lists.pdf
  • FPRO, 2018/19, Python code, Lecture's on GitHub
  • Brad Miller and David Ranum, Learning with Python: Interactive Edition. Based on material by Jeffrey Elkner, Allen B. Downey, and Chris Meyers (Chapter 10) HTML
  • Peter Wentworth, Jeffrey Elkner, Allen B. Downey, and Chris Meyers, How to Think Like a Computer Scientist — Learning with Python 3 (RLE), 2012 (Chapter 11) HTML

Summary

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

FPRO, 2018/19

« Previous | Index | Next »

teach/fpro/lectures/12.txt · Last modified: 12/11/2018 23:05 by Correia Lopes