This two-part introductory workshop is offered through the Robert Gillespie Academic Skills Centre at the University of Toronto Mississauga.
Ever wanted to delve into Python for your work, but found that whichever material you tried using focused too much on a specific form of data analysis? Heard of Python packages and extensions that are supposed to apply to your work, but not sure how to put them into practice? This two-part workshop provides a general overview of Python to help you get started with writing Python code for the specific needs of your research. The workshop will cover introductory Python from the ground up before introducing object-oriented programming and how field-specific Python packages take advantage of it to create all sorts of powerful tools. In the second half, we will go over making a basic custom Python object and use it break down how exactly these tools are created. Ultimately, this workshop aims to give learners the foundational knowledge needed to take their Python journey in whichever direction they choose.
Workshop 1 (1.5 - 2 hrs):
- Introduction to the Python interpreter and the Jupyter environment
- Python object types (e.g., integers, floats, strings, etc.)
- Iteration (e.g., for loops) and conditional statements (e.g., if/else)
Workshop 2 (1.5 - 2 hrs):
- Review from previous workshop
- Reading from + writing to files in Python
- Building a sample custom class called
fileparser
that expands on the file reading/writing operations we learned earlier