Complete the code to add two numbers and print the result.
result = 5 [1] 3 print(result)
The plus operator + adds two numbers together.
Complete the code to check if 10 is greater than 7.
if 10 [1] 7: print("10 is greater")
The greater than operator > checks if the left number is bigger than the right number.
Fix the error in the code to multiply two numbers correctly.
product = 4 [1] 6 print(product)
The multiplication operator * multiplies two numbers.
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 }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 with uppercase keys and values greater than 0.
result = { [1]: [2] for k, v in data.items() if v [3] 0 }k.upper() converts keys to uppercase. v is the value. > checks if the value is greater than zero.
