2. operators

You’ve likely been introduced to operators in your math class, but how can we use them in Python?

In this video, we’ll be exploring how to process our data using python operators. You’ll see some familiar operators such as addition, subtraction, multiplication, and division as well as one you may not have seen before: concatenation!

At the end of the video you’ll realize that different operators do different things to different data types.

agenda

  • what are operators?
  • practice with operators
  • addition, subtraction, multiplication division

slides worksheet 16 min
more practice
question #1

What will be the output of the following code?

print(12 + 6)
print(12 - 6)
print(12 * 6)
print(12 / 6)
print("12" + "6")
print(12 / 8)


18
6
72
2
126
1.5