Learning objectives
The goal of the course is to provide students with the ability to understand the principles of informatics and programming.
Prerequisites
No prerequisites.
Course unit content
1. Introduction to informatics: 1.1. Programs and algorithms 1.2. Boolean algebra and logic 1.3. Data representations 1.4. Computer architecture 1.5. Operating systems 2. Python programming language: 2.1. Structured programming 2.2. Data structures and collections 2.3. Functions 2.4. Reading and writing files 2.5. Tabular data processing with NumPy
Full programme
Programma esteso 1. Introduzione all’informatica: 1.1. Programmi e algoritmi 1.2. Algebra booleana e logica 1.3. Rappresentazione dati e codifica dell'informazione 1.4. Architettura del calcolatore 1.5. Diagrammi di flusso 1.6. Macchine a stati finiti 1.7. Sistemi operativi e riga di comando 2. Programmazione in linguaggio Python: 2.1. Tipi di dato 2.2. Operazioni di base (aritmetiche, confronto, booleane, stringhe) 2.3. Variabili 2.4. Funzioni e metodi predefiniti 2.5. Input/output utente 2.6. Grafica 2.7. Liste, tuple 2.8. Programmazione strutturata (if, while, for) 2.9. Funzioni e ricorsione 2.10. Lettura e scrittura file 2.11. Insiemi, dizionari 2.12. Elaborazione di dati tabulari con NumPy 2.13. Cenni a classi e oggetti 1. Introduction to informatics: 1.1. Programs and algorithms 1.2. Boolean algebra and logic 1.3. Data representation and encoding 1.4. Computer architecture 1.5. Flowcharts 1.6. Finite state machines 1.7. Operating systems and command line 2. Programming in the Python language: 2.1. Data types 2.2. Basic operations (arithmetic, comparison, Boolean, strings) 2.3. Variables 2.4. Predefined functions and methods 2.5. User Input/Output 2.6. Graphics 2.7. Lists, tuples 2.8. Structured programming (if, while, for) 2.9. Functions and recursion 2.10. Reading and writing files 2.11. Sets, dictionaries 2.12. Tabular data processing with NumPy 2.13. Introduction to classes and objects
Bibliography
1)Allen B. Downey, “Think Python: How to Think Like a Computer Scientist”, 2^ edizione, O'Reilly, 2015 2)Wes McKinney, “Python for Data Analysis: Data Wrangling With Pandas, Numpy, and Jupyter”, 3^ edizione, O'Reilly, 2022 3)Tomaiuolo, Michele, and Alberto Ferrari. “Introduzione all'informatica con Python”, McGraw-Hill Education (2024)
Teaching methods
Classroom lectures involving the presentation of slides and the guided resolution of programming exercises. Programming exercises in the laboratory.
Assessment methods and criteria
The examination is in two parts: a written test (duration 30 minutes), with multiple-choice questions and numerical exercises; a programming test (duration 1 hour), with the development of short Python programs. Final grade is the average of the two tests.
2030 agenda goals for sustainable development
Not applicable