Basics

Problem 1: Assume the following assignment statements have been executed.

x = 9
y = 2
z = 5

What will the following expressions (involving arithmetic operators) evaluate to?
(You should check your answers by evaluating these expressions on your computer)

x + y * z
x // y
x / y
x ** y - z

What will the following expressions (involving comparison operators) evaluate to?
(You should check your answers by evaluating these expressions on your computer)

x == y
x != z
y < x
y > z
x >= 9
z <= 9

Problem 2: Write an expression that calculates the number of seconds in 77.3 years (the average lifespan of a person living in the U.S. in 2020).

Problem 3: Write an expression using comparison operators to check whether the following statement is true: there are fewer seconds in 3 years than there are hours in 100,000 years (assuming there are 365 days in a year).