how to use a list comprehension in python code example
Example 1: list comprehension python 3
number_list = [x for x in range(10) if x % 2 == 0]
print(number_list)
Example 2: python list comprehension
h_letters = [ letter for letter in 'human' ]
print( h_letters)