Complete the code to add two numbers and print the result.
result = 5 [1] 3 print(result)
The plus sign + adds two numbers together.
Complete the code to multiply two numbers and print the result.
result = 7 [1] 4 print(result)
The asterisk * multiplies two numbers.
Fix the error in the code to correctly divide two numbers and print the result.
result = 10 [1] 2 print(result)
The forward slash / divides the first number by the second.
Fill both blanks to create a dictionary of squares for numbers greater than 3.
squares = {x: x[1]2 for x in range(1, 6) if x [2] 3}
print(squares)The operator ** raises a number to a power. The operator > checks if a number is greater than another.
Fill all three blanks to create a dictionary of uppercase keys and values greater than zero.
result = [1]: [2] for k, v in data.items() if v [3] 0}
k instead of k.upper() keeps keys lowercase.k.upper() converts keys to uppercase, v is the value, and > filters values greater than zero.
