lis comprehension code example
Example 1: list comprehensions
h_letters = [ letter for letter in 'human' ]
print( h_letters)
Example 2: list comprehensions
S = [x**2 for x in range(10)]
V = [2**i for i in range(13)]
h_letters = [ letter for letter in 'human' ]
print( h_letters)
S = [x**2 for x in range(10)]
V = [2**i for i in range(13)]