"""
Topic: Basic Arithmetic Operations: Floor Division, Modulus, and Exponent
Purpose: Understand Floor Division, Modulus and Exponent Operations in Python
Output: Displays results of floor division, modulus and exponent operations
"""
# -----------------------------
# 1. Example numbers
# -----------------------------
num1 = 17
num2 = 5
# -----------------------------
# 2. Floor Division
# -----------------------------
# The // operator divides numbers and gives the whole number part only (ignores remainder)
floor_div = num1 // num2
print(f"{num1} // {num2} = {floor_div}") # prints: 17 // 5 = 3
# -----------------------------
# 3. Modulus (remainder)
# -----------------------------
# The % operator gives the remainder after division
remainder = num1 % num2
print(f"{num1} % {num2} = {remainder}") # prints: 17 % 5 = 2
# -----------------------------
# 4. Exponent (power)
# -----------------------------
# The ** operator raises a number to the power of another
power = num2 ** 3 # 5 to the power of 3
print(f"{num2} ** 3 = {power}") # prints: 5 ** 3 = 125
# -----------------------------
# 5. Notes
# -----------------------------
# 1. Floor division // is useful when you only want the whole number result.
# 2. Modulus % is useful to find remainders, check even/odd numbers, or cycles.
# 3. Exponent ** is used to calculate powers.
# 4. Python follows order of operations: (), **, *, /, //, %, +, -