Strumenti Utente

Strumenti Sito


Programming for Data Science A.Y. 2023/24

This is an introductory course to computer programming and related mathematical/logic background for students without a Bachelor in Computer Science or in Computer Engineering. The objective is to smoothly introduce the student to the programming concepts and tools needed for typical data processing and data analysis tasks. The course consists of lectures and practice in computer labs.

The course is ANNUAL: so, classes will start in September and finish in May. Hence, the first exam date for students attending the course this year for the first time will be at the end of May: there will be a written/lab exam first, if you succeed, then you are admitted to the second part of the exam, the oral.

As a facilitation, we allow students who wish to do so, to take a partial test (a midterm) during the winter exam session (which is for A.Y. 22/23 students). If interested, we ask you to send us an email (with subject MidTerm_P4DS) a week before the exam asking us to attend the midterm, for organizational reasons.


Lessons: first semester on Wednesday 16-18 and Friday 14-16, room H; Second semester on Wednesday 14-16 (Fib E) and Thursday 11-13 (Fib C)

Course slides & other material on Teams: “667AA 23/24 - PROGRAMMING FOR DATA SCIENCE [WDS-LM]”,

Text Books

  • [LA] Mike X Cohen Linear Algebra: Theory, Intuition, Code 2021
  • [T] Kenneth H. Rosen. Discrete Mathematics and Its Applications. MCGraw-Hill. Supplement material (including Errata-Corrige).
  • [T] “Linear Algebra: Theory, Intuition, Code” by Mike X Cohen, chapters: Vectors; Vector multiplication; Matrices; Matrix multiplication; Rank; Determinant; Matrix inverse; Eigendecomposition
  • [P] Pieter Spronck. The Coder’s Apprentice: Learning Programming with Python 3, 2017. Book and supplement material.
  • [C] Brian W. Kernighan, Dennis M. Ritchie. C Programming Language. Second Edition, Prentice Hall, 1988.


  • Python programming: Anaconda distribution of Python 3. Computers at lab rooms include it both on Linux and Windows OS.
  • C programming (Linux): either gedit (or equivalent text editor) and gcc. If you do not have gcc on your machine, check next item. Gedit and gcc are available on computers at lab room (Linux only).
  • C programming (Windows) Either DevC++ (already installed on LabMachines) or install CygWin (not on lab machines – on your PC) or install a Virtual Machine (such us VirtualBox) running any Linux distribution.
  • Editor for C files on Windows Either use the DevC++ editor, or use Notepad++ .
  • Unix Shell Either use Linux on lab machines, or install CygWin (on your PC).
  • Python/C online including visualization of memory state PythonTutor.
  • Jupyter Notebooks shown during theory classes GitHub

Previous years


mds/pds/start.txt · Ultima modifica: 05/03/2024 alle 16:59 (3 mesi fa) da Laura Semini