[ Write a python function to print powers of 2, for given number of terms ]
def two_power(terms):
result = list(map(lambda x: 2 ** x, range(terms)))
print(f"The total terms are: {terms}")
for i in range(terms):
print(f"2^{i} = {result[i]}")