J. Correia Lopes

FEUP/DEI & INESC TEC

User Tools

Site Tools


teach:fpro:labs:12

P: 17/12/2018

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


Practical work #12 :: Week of 17/12/2018

Goals

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

  • Write Python3 programs that read data from files
  • Write Python3 programs that fetch data from Web resources

Bibliography

  • Peter Wentworth, Jeffrey Elkner, Allen B. Downey, and Chris Meyers, How to Think Like a Computer Scientist — Learning with Python 3, 2018 (Chapter 7) PDF]
  • Brad Miller and David Ranum, How to Think Like a Computer Scientist: Interactive Edition, Based on material by Jeffrey Elkner, Allen B. Downey, and Chris Meyers (Chapter 11) HTML
  • The Python Standard Library, 11. File and Directory Access 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 #12: FP with Collections", RE12: Files
  • FPRO, "Moodle task for this week", available online at Moodle
  • FPRO, "FPRO Playground", FPROplay2)
  • J. Correia Lopes, Lecture #21 – Files, 2018, available online at FPRO's wiki

Summary

  • Write Python3 code to work with files. Reading a file. Fetching resources from the Web.

FPRO, 2018/19

« Previous | Index | Next »

1) , 2)
Needs VPN, if outside FEUP's network
teach/fpro/labs/12.txt · Last modified: 29/12/2018 13:26 by Correia Lopes