Complete the code to print a message using software instructions.
print([1])
The print function needs a string inside quotes to display text on the screen.
Complete the code to assign a number to a variable.
speed = [1]Assigning a number to a variable means writing the number without quotes.
Fix the error in the code to make the computer add two numbers.
result = 5 [1] 3
The plus sign (+) adds two numbers together.
Fill both blanks to create a loop that counts from 1 to 5.
for [1] in range([2]): print([1] + 1)
The variable i is commonly used in loops. range(5) counts from 0 to 4, so adding 1 prints 1 to 5.
Fill all three blanks to create a dictionary of squares for numbers greater than 2.
squares = { [1]: [2]**2 for [3] in range(1, 6) if [3] > 2 }We use the same variable x for keys and values in the dictionary comprehension.
