Review

div/mod and debugging

input

Function interfaces

Conditionals

Boolean Values

Boolean Expressions

x = True
y = False
print(x or y)
print(x and y)
print(not x)

If/else


def even_or_odd(num : int) -> str:
  if (num % 2 == 0):
    return 'even'
  else:
    return 'odd'

x = 6
print(f"{x} is {even_or_odd(x)}.")

Old notes