Complete the code to show the first step in an algorithm to add two numbers.
result = num1 [1] num2The plus sign (+) is used to add two numbers step-by-step.
Complete the code to show the next step: checking if the result is greater than 10.
if result [1] 10: print('Result is large')
The '>' symbol checks if the result is greater than 10, which is a step in decision-making.
Fix the error in the step that repeats printing numbers from 1 to 5.
for i in [1](1, 6): print(i)
The 'range' function generates numbers from 1 to 5 step-by-step, which is needed for the loop.
Fill both blanks to create a step-by-step filter for even numbers in a list.
evens = [num for num in numbers if num [1] 2 == [2]]
The '%' operator finds the remainder, and '0' means the number is even if remainder is zero.
Fill both blanks to create a dictionary of word lengths for words longer than 3 letters.
lengths = {: {BLANK_2}} for [2] in words if len({{BLANK_3}}) > 3The dictionary starts with '{', keys are words, values are their lengths using len(word).