Python for beginners 12-2025

Python for beginners 12-2025
The course will guide you to setup a development environment using VS Code together with Gitlab and creating a personal Git repository for the course. Afterwards, it will provide Python programming concepts, covering variables, functions, loops, lists, dictionaries, among others. During the process we will show you tools to help you keep the code clean and to enforce proper Python syntax and styling. Later, we will cover the basics of file handling in Python, gaining the ability to read/write files and to manipulate data. Finally, we will visualize data by using the packages matplotlib and seaborn by using practical examples.
Basic knowledge of programming will be given in the first day.
Topics that are going to be addressed:
- Setup of a development environment for Python and a git repository
- Introduction to Python programming
- Basics of Python: syntax, styling tools, code organisation
- Python flow control: if...else statements, for and while loops
- Data structures: lists and dictionaries
- File I/O - Read and Write Files in Python
- Introduction to plotting with Python
What NOT to expect:
- Advanced topics like Object Oriented Python programming, complex algorithms or complex data structures will not be covered
- Deep dives into specialized libraries like pandas, matplotlib or seaborn are out of the scope
Pre-requisite: Linux terminal for beginners course (or Linux experience)
AGENDA:
Day 1. Programming Concepts
- Variables
- Loops / Nested loops
- Conditional execution: if-elif else
- Functions
Day 2. A quick tour of Python
- Variables
- Comments and docstrings
- Types, help system
- Operators
- Printing with f-strings
- User Input
- Type conversion
- Defining simple functions
- Logical expressions
- Conditional execution: if-elif else
- Loops: for and while
- Lists
- Tuples
- Dictionaries
- Sets
Day 3
- Standard library vs 3rd party libraries
- Python File I/O
- Introduction to plotting in Python: Matplotlib & Seaborn
Day 4
- Introduction to Visual Studio Code
- Python shell
- Python virtual environments
- Git and CRG Gitlab
- Python linters and formatters
- Boilerplate for development
Target audience: CRG & EMBL Barcelona staff
Instructor: Xanthi-Lida Katopodi, Clemente Borges and Emyr James
Dates: 4th, 5th, 9th & 10th of December (10:00-13:00)
Location: Bioinformatics room (CRG Training Centre) - Presential
Maximum number of participants: 18
Registration deadline: 14th November 2pm
Registration HERE
For any information, please send an email to CRG Training and Academic office (TAO): training@crg.eu
Training financiado por Ayuda:CEX2020-001049-S financiada por MCIN/ AEI / 10.13039/501100011033

