list comprehension with class and instance python code example
Example: list comprehension python 3
number_list = [x for x in range(10) if x % 2 == 0]
print(number_list)
number_list = [x for x in range(10) if x % 2 == 0]
print(number_list)