In the video, we introduced the general concept of conditionals. This is a powerful concept in programming, and virtually all programming languages offer a way to create conditionals. They are …
Rafael explains how to write comments in our code that will not have any effect to the computer. This is useful if you want to leave a message about your …
Rafael provides a recap of what you have considered in the course so far, and what is coming up this week. Week 2 Learning Objectives Describe what if statements do …
These three short exercises will help you practice your Python programming skills on reading input from a user, declaring variables, and doing basic operations on numbers (addition, subtraction, multiplication etc). …
In this video, we will look at primitive data types in Python. These are the basic data types in Python that represent certain types of data that are very important.
In this step, there are two exercises to enable you to practice defining variables within a Python program. We have provided the solutions, so don’t worry if you get stuck! …
You may remember from mathematics that when you have a complicated mathematical expression, there are rules about how it should be evaluated. For example, in mathematics if you have the …
This activity will introduce basic Python syntax. Learning this syntax will enable you to write Python programs. We will use the online version of the Visual Studio Code to write …
This step we will revisit some basic logical operators. The AND Operator Input (A) Input (B) AND Outrput False False False False True False True False False True True True The first …