J. Correia Lopes

FEUP/DEI & INESC TEC

User Tools

Site Tools


teach:fpro:labs:13

P: 07/01/2019

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


Practical work #13 :: Week of 07/01/2019

Goals

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

  • Write Python3 programs that handle runtime exceptions
  • Write Python3 programs that throw exceptions

Bibliography

  • Peter Wentworth, Jeffrey Elkner, Allen B. Downey, and Chris Meyers, How to Think Like a Computer Scientist — Learning with Python 3, 2018 (Appendix E) PDF
  • The Python Tutorial, 8. Exceptions, Python 3.6.7 documentation, Release 3.6.7, November 20, 2018 HTML

Tasks

  1. Study the bibliography available on the class topic
  2. Download the PDF of the Recitation and away programming assignments (RE) of the week
  3. Start answering the exercises of the assignment
  4. Test your solutions to the exercises at FPROtest1)
  5. When ready, before the deadline, go to Moodle to submit

Materials

  • FPRO, "Assignment #13: Exceptions", RE13: Exceptions
  • FPRO, "Moodle task for this week", available online at Moodle
  • FPRO, "FPRO Playground", FPROplay2)
  • J. Correia Lopes, Lecture #23 – Exceptions, 2018, available online at FPRO's wiki

Summary

  • Write Python3 code to work with exceptions. Catch and handle runtime exceptions. Raise exceptions. Assertions.

FPRO, 2018/19

« Previous | Index

1) , 2)
Needs VPN, if outside FEUP's network
teach/fpro/labs/13.txt · Last modified: 05/01/2019 16:34 by Correia Lopes