<filename>Topics/List comprehension/Threefold/main.py
list_x = [x for x in range(1, 1001) if x % 3 == 0]
print(list_x)
<filename>Topics/List comprehension/Threefold/main.py
list_x = [x for x in range(1, 1001) if x % 3 == 0]
print(list_x)