Which line correctly reads a number from the user and stores it as an integer?
What is printed? x = 5 print(x == 5)
Which expression evaluates to True?
What will this code print? score = 70 if score >= 60: print(“Yes”) else: print(“No”)
What is printed by this code? age = “20” print(int(age) + 5)
What is printed? numbers = [10, 20, 30, 40] print(len(numbers))
What happens if the user enters 12? x = input(“Number: ”) print(x + 5)
What will this code print? numbers = [10, 20, 30] for n in numbers: print(n)
What is the result of 2 + 3 * 4?
Which variable name is valid in Python?
Which operator means 'both conditions must be true'?
What values are printed? for i in range(3): print(i)
What will this code print? x = 8 if x > 10: print(“A”) elif x > 5: print(“B”) else: print(“C”)
What is the result of 17 % 5?
What will this code print? x = 10 x = x + 2 print(x)
What will this code print? age = 16 if age >= 18: print(“Adult”) elif age >= 13: print(“Teen”) else: print(“Child”)
What is the value of result? result = 10 // 4
How many times does this loop run? for i in range(1, 5): print(i)
What is the data type of the value stored in x? x = 5 > 2
What is printed? total = 0 for i in range(1, 4): total = total + i print(total)