wiki:WikiStart

Programming in Python (for quantitative biologists)

Learning objectives and expected learning outcomes

The course introduces students to imperative programming by referring to the Python language.

The course is divided in two parts:

  1. Python and its object-oriented features;
  2. Python libraries that can be useful in scientific computation and data analysis, in particular ​NumPy and ​pandas.

Students will acquire the ability to write and tune a program that automatizes simple computational tasks; they will be able to understand how a small piece of Python code works, to find the reasons of a malfunction and to correct it appropriately. Moreover, students will be able to use the ​NumPy and ​pandas library to analyze tabular data.

A.A. 2026/27

The course will take place in the first semester. Currently, we expect to lecture on-premises, lectures will NOT be streamed. You can find some videos from last year course in the 2020/21 web page linked below.

​Official Timetable

The course will have a total of 40 hours of lessons and 16 hours of lab practice. The exact schedule will be announced during the lessons (the first lesson is on October 1st). Since a.a. 2024/25, attendance is mandatory for QB students: to be admitted to the final examination a QB student must have attended ≥ 10 lectures and ≥ 6 labs.

Syllabus

  • The Python programming language.
  • Native data types.
  • Functions, selections and iterations.
  • Basic data structures: lists, tuples, dictionaries.
  • Object-oriented encapsulation.
  • Iterators and generators.
  • Files.
  • Numpy multi-dimensional arrays and matrices.
  • Data manipulation and analysis with pandas.

Any Python3 book can be used to support the learning of the general part, for example ​J. Hunt "A Beginners Guide to Python 3 Programming" (The electronic version is free for Unimi students). ​NumPy and ​pandas have excellent online documentation.

The examination is based on laboratory exercises. A final mark (on a 30 point scale) is given, by taking into account the knowledge of the subject and tools, and the clarity of the solutions.

Schedule

0. October 1, 9:30 QB Welcome day, Room G10

October 2, 8:30

1. October 6, 10:30 Seminari DOP

2. October 8, 8:30 B5

October 9, 8:30

3. October 13, 10:30 Seminari DOP

4. October 15, 8:30 B5

5. October 16, 8:30 Lambda LAB

6. October 20, 10:30 Seminari DOP

7. October 22, 8:30 B5

8. October 23, 8:30 Lambda LAB

9. October 27, 10:30 Seminari DOP

10. October 29, 8:30 B5

11. October 30, 8:30 Lambda LAB

12. November 3, 10:30 Seminari DOP

13. November 5, 8:30 B5

14. November 6, 8:30 Lambda LAB

15. November 10, 10:30 Seminari DOP

16. November 12, 8:30 B5

November 13, 8:30

17. November 17, 10:30 Seminari DOP

18. November 19, 8:30 B5

19. November 20, 8:30 Lambda LAB

20. November 24, 10:30 Seminari DOP

21. November 26, 8:30 B5

22. November 27, 8:30 Lambda LAB

23. December 1, 10:30 Seminari DOP

24. December 3, 8:30 B5

25. December 4, 8:30 Lambda LAB

December 10, 8:30

December 11, 8:30

26. December 15, 10:30 Seminari DOP

27. December 17, 8:30 B5

28. December 18, 8:30 Lambda LAB

Previous years

Last modified 3 days ago Last modified on Oct 8, 2026, 10:26:06 AM
Note: See TracWiki for help on using the wiki.