6 questions. Covers Range checks in Python.
Questions 1 to 5 of 6
python x = 50 if x >= 1 or x <= 10: print("in range")
<=
<
or
and
==
>=
python items = [10, 20, 30] for i in range(len(items) + 1): if 0 <= i <= len(items): print(items[i])
i <= len(items)
items[3]
python a = 1 b = 10 print(1 <= a < 10, 1 <= b < 10)
python import math nan = math.nan print(0.0 <= nan <= 1.0, not (0.0 <= nan <= 1.0))
in_range(x, low, high)
x >= low and x <= high
in_range(5, 10, 1)
low
5 >= 10
x
5 question(s) left on this page.