C-16-Q012mediumsingle_mcq
To store the value 9 in a variable named number, we write:
To store the value 9 in a variable named number, we write:
- a
number == 9 - b
9 = number - c
number = 9 - d
number : 9
ব্যাখ্যা
Assignment in Python uses a single equals sign with the variable on the left and the value on the right, so number = 9 stores 9 in number. A double == is the equality comparison operator, not assignment.