Lesson 5
REPL again and Modulo operator
# Practice using REPL
>>> a = 2
>>> b = 8
>>> a + b
10
>>> c = 1 / 2
>>> 1 / 2
0.5
# modulo operator
>>> 1 % 2
1
>>> 2 % 2
0
>>> c = 2 % 2
>>> c
0
# if statement
>>> c == 0
True
# Pseudo code
# if True:
# do something
even or odd number
Pseudo code