Introduction to Python Programming for Research

INVEST Transversal Courses

This intensive course introduces PhD students from different scientific disciplines to Python programming, equipping them with essential computational skills to support their doctoral research. The course is designed for participants with limited or no prior programming experience and focuses on practical, research-oriented applications.
Through hands-on exercises and real-world examples, students will learn how to develop Python programs for data processing, analysis, visualization, automation of repetitive tasks, and basic scientific computing. The course also introduces fundamental concepts of data management, working with external datasets, and using widely adopted Python libraries such as NumPy, Pandas, and Matplotlib.
Emphasis is placed on developing practical problem-solving skills that students can immediately apply to their own research activities, regardless of their academic background.

Main Topics
1.    Python Programming Fundamentals: Variables, data types, operators, conditional statements, loops, functions, and basic data structures.
2.    Working with Data: Reading, writing, processing, and managing data from files, spreadsheets, and external sources.
3.    Scientific Computing: Introduction to NumPy for numerical operations and computational tasks.
4.    Data Analysis and Visualization: Using Pandas and Matplotlib to analyze datasets, generate statistics, and produce research-quality figures.
5.    Research Automation: Developing scripts to automate repetitive research tasks, process multiple files, and organise experimental results.
6.    Introduction to Research-Oriented Applications: Basic statistical analysis, simple simulations, and an introduction to machine learning tools.

Learning Outcomes
Upon successful completion, participants will be able to:
•    Write, execute, and debug Python programs.
•    Process and analyze research datasets.
•    Create scientific visualizations and reports.
•    Automate common research workflows.
•    Use Python libraries for basic scientific and statistical computing.
•    Develop simple computational solutions relevant to their doctoral research.

  • ECTS: 2
  • Total hours: 16
  • Mode of participation: Online
  • Course code: INV.TRSVL.2.11
  • Category: BASIC TECHNOLOGY SKILLS
Prerequisites

Target audience: All students that want to learn a programming language.

Learning Objectives
The aim of this course is to introduce students to the fundamentals of computer science through the Python programming language. Students will explore core concepts such as algorithms, algorithmic efficiency (in an intuitive manner), the syntax and semantics of programming languages, basic data structures, essential programming techniques, and the principles of object-oriented programming. Emphasis will be placed on formulating and implementing algorithmic solutions using Python.
By the end of the course, students will be able to:

1.    Explore the concept of algorithms, including how to design, analyze, and evaluate their efficiency using Python.
2.    Learn to write syntactically correct and semantically meaningful Python code, gaining familiarity with Python’s structure and conventions.
3.    Use and manipulate fundamental data structures such as lists, dictionaries, sets, and tuples to solve computational problems.
4.    Apply basic programming techniques including conditional logic, loops, functions, and recursion in Python.
5.    Understand and implement object-oriented programming principles such as classes, objects, inheritance, and encapsulation using Python.
6.    Translate real-world problems into algorithmic solutions and implement them in Python.
7.    Practice debugging and testing Python programs effectively, using standard tools and practices.
8.    Design and develop small-scale software projects that demonstrate problem-solving, modular design, and code readability.

Learning Outcomes
After completing the course, students will be able to:
•    Explain fundamental concepts, terminology, and techniques related to algorithms and programming using Python. (Remembering)
•    Demonstrate understanding of Python’s syntax and semantics, including its dynamic typing, indentation-based structure, and built-in functions. (Understanding)
•    Formulate problems in a structured, algorithmic way and develop corresponding solutions using Python. (Applying)
•    Design and implement software applications using the Python programming language, applying modular and structured programming principles. (Applying)
•    Analyze the efficiency of algorithms implemented in Python, in terms of time and space complexity, using both theoretical and empirical methods. (Analyzing)

Content
1.    Introduction to Programming and Python
•    What is programming?
•    Installing and using Python (IDEs, notebooks)
•    Python syntax, variables, data types, expressions
•    Type conversion and basic input/output
2.    Control Structures
•    Conditional statements (if, elif, else)
•    Loops (for, while)
•    Loop control (break, continue, pass)
•    Nesting and indentation
3.    Functions and Modular Programming
•    Defining and calling functions
•    Parameters, return values, scope
•    Recursion (e.g., Fibonacci, Towers of Hanoi)
•    Basic debugging and tracing
4.    Data Structures I: Built-in Collections
•    Lists, tuples, sets, dictionaries
•    Indexing, slicing, iteration
•    Common operations and methods
5.    Algorithmic Thinking and Problem Solving
•    Problem decomposition
•    Pseudocode and flowcharts
•    Searching and sorting algorithms (e.g., linear/binary search, bubble/insertion sort)
•    Time and space complexity (introductory level)
6.    Data Structures II: Abstract Data Types
•    Linked lists (conceptual introduction)
•    Stacks and queues (using lists or collections.deque)
•    Trees and binary search trees (basic operations)
7.    Object-Oriented Programming in Python
•    Classes and objects
•    Constructors, attributes, and methods
•    Encapsulation and visibility
•    Inheritance and method overriding
•    Special methods (__init__, __str__, etc.)
8.    Error Handling and Exceptions
•    Types of errors (syntax, runtime, logic)
•    Try-except blocks
•    Raising exceptions
•    Defensive programming

Reading List
1.    Think Python: How to Think Like a Computer Scientist
Author: Allen B. Downey
Level: Beginner to Intermediate
Why: Excellent for building algorithmic thinking and understanding Python fundamentals.
ISBN: 9781098155438, 1098155432
Publication year: 2024
2.    Python Programming: An Introduction to Computer Science
Author: John Zelle
Level: Beginner to Intermediate
Why: Combines computer science theory with practical Python examples.
ISBN: 9781590282410, 1590282418
Publication year: 2010
3.    Automate the Boring Stuff with Python
Author: Al Sweigart
Level: Beginner to Intermediate
Why: Practical and engaging, ideal for learning Python through real-world tasks.
Publication year: 2023 (2nd edition)
Available: Free online

To be decided.

Project based evaluation.

4. Quality Education
9. Industry, Innovation and Infrastructure
17. Partnerships for the goals

Learning Outcomes
Upon successful completion, participants will be able to:
•    Write, execute, and debug Python programs.
•    Process and analyze research datasets.
•    Create scientific visualizations and reports.
•    Automate common research workflows.
•    Use Python libraries for basic scientific and statistical computing.
•    Develop simple computational solutions relevant to their doctoral research.

Contact for registration: UTH


Courses in the same category