wiki:WikiStart

Version 2 (modified by monga, 4 years ago) ( diff )

--

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. 2020/21

The course will start in March 2021. If pandemic restrictions persist, lectures will be mainly streamed via YouTube (with synchronous interaction with the instructors); streamed videos will be available until the conclusion of the course. Some lesson could be registered in asynchronous form. Laboratory exercises will conducted autonomously by the students and special synchronous feedback sessions will be organized.

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.

Note: See TracWiki for help on using the wiki.