JCL

FEUP/DEI & INESC TEC

User Tools

Site Tools


teach:fpro:lectures:06

LE06: 29/10/2020

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


Lecture #6 :: 29/10/2020

Goals

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

  • Identify functions that return a value (fruitful functions)
  • Enumerate the diverse uses of the return statement
  • Describe and use boolean functions
  • Describe and use incremental program development
  • Identify uses of function composition
  • Enumerate the main PEP8 rules for writing Python programs

Content

  • 4. Functions (cont.)
    • 4.10 Return values
    • 4.11 Program development
    • 4.12 Debugging with print
    • 4.13 Composition
    • 4.14 Boolean functions
    • 4.15 Programming with style

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] (Chapter 4)

Materials

Summary

  • Functions that return a value. Use of the return statement. Boolean functions. Incremental programming. Function composition. PEP8.

FPRO, 2020/21

« Previous | Index | Next »

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