Skip to content

Learning Python

Learning Python

The goal of this module is to teach some foundational concepts in python, equip you with the tools to write your own scripts and break down barriers so that coding seems a little less daunting!

This is not meant to be comprehensive and should be viewed as an introduction to some vast topics.

Throughout this module, you will find various examples of scripts that will help you understand important concepts in python. We encourage you to try it out yourself as you progress.

Some words of advice: The best way to learn is to make mistakes. A great way to solve an error is to just Google the error.

Finally, these modules are in development.  If you see an error, please feel free to email or leave a comment.

Navigating Through the Module:

Throughout this module, you will find information presented in a few ways. You can click through the tabs below to choose the best formats for you!

The concepts are described theoretically, first. I suggest reading through the descriptions before trying out the examples
To expedite the time taken, you can copy and paste the code provided into your working environment. Additionally, you can refer to the snapshots from my environment to troubleshoot any errors you may come across
Finally, you will find videos of me working through the examples as an added resource!

Learning Objectives

By the end of this module, you will:

  1. Be able to write and run simple scripts in python
  2. Have an understanding of the basic syntax of python
  3. Gain familiarity in various datatypes
  4. Understand the usage of operators
  5. Use regular expressions to find patterns and manipulate data
  6. Create and use dictionaries
  7. Understand conditional statements and their syntax
  8. Define and implement functions
  9. Be able to take input files and use them in your scripts
  10. Use python to answer a practical question from a real dataset

Table of Contents:


Thank you for following along! I hope you were introduced to some new topics and are leaving with a better understanding of what Python is. The key point I would like to leave at is: this is just the starting point. Use the vast resources available online to explore other cool methods. Indulge your curiosity and discover what this language has to offer.


Please take a few minutes to tell us about your experience:

Which of the following best describes your experience prior to completing this module?

On a scale of 1-10, how useful did you find the module to be?

What are some areas of the module we can improve on?

Suggestions are welcome and encouraged!

Which tools in the module did you find most useful?

One a scale of 1-10, how time consuming was the module?

A 1 being, very time consuming and way too long. A 10 being, succinct and to the point.

Statistics - View the results