JCL

FEUP/DEI & INESC TEC

User Tools

Site Tools


teach:fpro:lectures:16

LE16: 10/12/2020

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


Lecture #16 :: 10/12/2020

Goals

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

  • Simplify common list processing patterns using Comprehensions
  • Describe the use of iterators
  • Describe the use of List, Set and Dictionary comprehensions
  • Describe the use of Generator expressions

Content

  • Comprehensions
    • Iterators
    • List comprehensions
    • Generator expressions
    • Set comprehensions
    • Dictionary comprehensions

Bibliography

  • A. M. Kuchling, Functional Programming HOWTO, Python 3.8 documentation, Release 0.32 HTML
  • Python Course, List Comprehension, Python3 Tutorial HTML

Materials

Summary

  • Simplify common list processing patterns using comprehensions. Iterators. List comprehensions. Generator comprehensions. Set comprehensions. Dictionary expressions.

FPRO, 2020/21

« Previous | Index | Next »

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