J. Correia Lopes

FEUP/DEI & INESC TEC

User Tools

Site Tools


teach:fpro:lectures:11

T: 06/11/2018

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


Lecture #11 :: 06/11/2018

Goals

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

  • Describe how to work with tuples
  • Enumerate the main methods available to work with tuples

Content

  1. Data types
    • 5.2.1 Tuples are used for grouping data
    • 5.2.2 Tuple assignment
    • 5.2.3 Tuples as return values
    • 5.2.4 Composability of Data Structures
    • Tuple operations
    • 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.2) PDF

Materials

  • J. Correia Lopes, Illustrations presented in class, 11-tuples.pdf
  • FPRO, 2018/19, Code present in class, 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 (Section 10.26, Section 10.27, Section 10.28) 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 9) HTML

Summary

  • Tuples. Working with tuples. Operations with tuples. Tuples are immutable.

FPRO, 2018/19

« Previous | Index | Next »

teach/fpro/lectures/11.txt · Last modified: 04/11/2018 11:51 by Correia Lopes