items = [1, 2, 3, 4, 5, 6, 7, 8, 9]
for item in items:
if 5 <= item <= 10:
print(item)
You might find Python for Beginners useful.
0
solved Search list for number in range
items = [1, 2, 3, 4, 5, 6, 7, 8, 9]
for item in items:
if 5 <= item <= 10:
print(item)
You might find Python for Beginners useful.
0
solved Search list for number in range