Skip to main content

Programming in Science

Welcome to 420-SN1 Programming in Science

In this course, you will learn everything about the basics of programming to solve scientific problems, read data from files, clean up the data, apply mathematical formulas, and so much more.

This image was AI generated.

This website provides you with additional notes and practice exercises that can help you better understand and master the concepts seen in class.

Course Outline

You can download a copy of the course outline from Léa.

Tools & Materials

  • Python 3.12 (or above)
  • Thonny IDE
  • A decent Internet connection

Website conventions

Learning Objectives

All credits go to Vikram Singh for the original idea for adding learning objectives to every topic.

Note☆ Learning Objectives

These are core objectives covered in the course and could be part of the final evaluation.

Warning☆ Additional Objectives

These are not core objectives of the course and will typically not be part of the final evaluation (except if teachers decide otherwise). But they are useful for labs/assignments and may or may not be covered by your teacher.

Content bubbles

NoteHightlighted content

This is part of the core content and should be studied.

ImportantCommon mistakes/ code crashes

This is a warning related to code errors that can lead to incorrect answers or make your program crash. They are meant to teach you about common mistakes.

WarningWarning related to a Python configuration

This is a warning related to a required installation or configuration.

Hidden content

Additional information that is not part of the core content. It’s collapsed for you to optionally look at.

Practice exercises

🎯 Test Myself: Short questions found throughout each topic’s notes to help you grasp and check your understanding of the concept.

✍️ Practice: These practice problems are found at the end of each module, they are meant to reinforce and consolidate your understanding of a topic. Do as many as you need until you feel comfortable with the concepts.

🧩 Problem Solving: These questions are meant to connect the module with what you previously learnt and challenge you. These are excellent preparation for Quizzes and Tests.

🚀 Challenge : Harder, optional problems to challenge yourself further. Some of these could be useful to prepare for the Final Exam.

This is a solution for an exercise and is collapsed for you to optionally look at.