C-16-Q110mediummulti_combo_mcq
Which of the following pairs of symbols are BOTH valid Python relational operators?
Which of the following pairs of symbols are BOTH valid Python relational operators?
==<==<
- ai and ii
- bii and iii
- ci and iii
- di, ii, and iii
ব্যাখ্যা
Python's relational operators are == (equal to) and <= (less than or equal to). The symbol =< is not valid in Python — the order is always the comparison sign followed by the equals sign, so only i and ii are correct.