Loading ad...
Quiz: Python Lists
Practice Python operators with this quiz on arithmetic, assignment, comparison, logical, identity, membership, and bitwise operators.
1.
Which of the following is a valid arithmetic operator in Python?
2.
What will be the output of this code?
python
1
print(10 // 3)
3.
Which operator returns True only if both conditions are true?
4.
What is the output of this identity check?
python
1 2 3
x = [1, 2, 3] y = x print(x is y)
5.
Which operator is used for bitwise AND in Python?