Academic Year 2022/2023

  • Moduli: Mario Bravetti (Modulo 1) Raffaele Cappelli (Modulo 2) Guido Borghi (Modulo 3)
  • Teaching Mode: Traditional lectures (Modulo 1) Traditional lectures (Modulo 2) Traditional lectures (Modulo 3)
  • Campus: Forli
  • Corso: Second cycle degree programme (LM) in Economics and management (cod. 9203)

    Also valid for Campus of Cesena
    Second cycle degree programme (LM) in Digital Transformation Management (cod. 5815)

Course contents

The course is structured in three modules taking place in parallel: one carrying out lectures on Python programming, one with corresponding lab activity (guided exercises at the PC), and one dedicated to computer architectures.

Python Programming: variables, objects, types and expressions; control flow statements; object attributes and methods; function definitions and scoping; modules, standard library and packages; immutable and mutable objects; basic data structures (strings, tuples, lists, dictionaries) and their use in the solution of problems; basic types of algorithms.

Computer Architectures: working knowledge of the key terms, computer components (CPU, RAM, HDD/SSD, I/O devices), milestones in computer architectures, current trend and applications; digital representation, logic circuits, chips and their production; modern computer architectures: computer performance, parallelism, comparison of architectures, cloud paradigm, computer-related companies.


John V. Guttag
Introduction to Computation and Programming Using Python. 3rd edition.
MIT press, 2021.
Electronic version available here for UNIBO users (by clicking on “fulltext”).

A.S. Tanenbaum, T. Austin
Structured Computer Organization. 6th edition.
Pearson Education Limited

Another book on Python:

Allen B. Downey
Think Python: How to Think Like a Computer Scientist. 2nd edition.
O'Reilly Media, 2012.
Electronic version distributed free: PDF, HTML.

Teaching methods

Lectures on Computer Architectures and Python Programming, the latter with live-coding using Thonny and Python Tutor.

Guided programming exercises in Python with JupyterLab.

As concerns the teaching methods of this course unit, all students must attend Module 1, 2 on Health and Safety online.

Assessment methods

There is a single exam covering both the lectures (on Computer
Architectures and Python Programming) and the lab. The exam consists of a written test with closed-ended, open-ended questions, and programming problems.

The part on Computer Architectures will contribute to the final grade with 10 points out of 30 (with a minimum score of 5 to pass the exam) and the part on Python Programming with 20 points out of 30 (with a minimum score of 10 to pass the exam). The exam is passed with an overall score of at least 18; perfectly answered tests will get an overall grade of 30 with Laude.

Teaching tools

During the term of the lectures, material (both slides and lab exercises) will be available on virtuale.

Students are encouraged to install on their PCs Thonny, a simple environment for the programming language Python 3, which will be used during the lectures and JupyterLab, a web-based interactive development environment that will be used during the lab activities.

Office hours

See the website of Mario Bravetti

See the website of Raffaele Cappelli

See the website of Guido Borghi