This repository contains the solution to the exam of the lab of the course "Indroduzione alla Programmazione" of the Bachelor's Degree in Artificial Intelligence and Data Analytics (AIDA) at the University of Trieste.
The file esame.py
contains an ExamException
class, a CSVFile
class, a CSVTimeSeriesFile
class extending the CSVFile
class and defining a method get_data
and a function find_min_max
.
The file test_esame.py
contains the tests for the esame.py
file, using unittest.
The file data.csv
contains the data used for the manual tests.
The file test.csv
contains the data used for the automatic tests done by unittest.
The file main.py
contains the main function that reads the data from the file data.csv
and prints the time series read from the csv file and the minimum and the maximum value months for each year, and executes the unittests.