JCL

FEUP/DEI & INESC TEC

User Tools

Site Tools


teach:fpro:lectures:10

LE10: 19/11/2020

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


Lecture #10 :: 19/11/2020

Goals

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

  • Use the main methods available to work with lists
  • Use generalised for loops with lists
  • Describe pure functions and modifiers (that make side-effects)
  • Describe type conversions (list and range)
  • Use nested lists to work with matrices

Content

  • Data types: Lists
    • 5.3.12 Lists and for loops
    • 5.3.13 List parameters
    • 5.3.14 List methods
    • 5.3.15 Pure functions and modifiers (make side-effects)
    • 5.3.16 Functions that produce lists
    • 5.3.17 Strings and lists
    • 5.3.18 Type conversions: list and range
    • 5.3.19 Looping and lists
    • 5.3.20 Nested lists
    • 5.3.21 Matrices

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. List methods. Looping and lists. Pure functions and modifiers. Type conversions: list and range. Nested lists.

FPRO, 2020/21

« Previous | Index | Next »

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