Unit 3.3/3.4 Hacks
3.3.1
Sequencing: 1, 2, 3, 4, 5
All events in the list are part of a sequence. All events must occur in the specified order
Selection:3
This step evaluates an expression to a boolean and determines the following code path based on its result
Iteration:4
Causes code to loop until a certain condition is met
num1 = 5
# num1 = 5
num2 = num1 * 3
# num2 = 15
num3 = num2 / num1 * (9 % 2) * 4
# num3 = 15 / 5 * (9 % 2) * 4
# num3 = 15 / 5 * 1 * 4
# num3 = 12
result = (num3 % num1 + num2) % num3 * 3 / 5
# result = (12 % 5 + 15) % 12 * 3 / 5
# result = (2 + 15) % 12 * 3 / 5
# result = 5 * 3 / 5
# result = 3
# check
print(result)