Python Program to Display Powers of 2 Using Anonymous Function || Python Programming || #Python

preview_player
Показать описание
Namaskar Dosto Welcome to Tech BeforeTime.

Python Program to Display Powers of 2 Using Anonymous Function
Python code:

terms = int(input("Enter Value: "))
result = list(map(lambda x: 2 ** x, range(terms)))
print("The total terms are:",terms)
for i in range(terms):
print("2 raised to power",i,"is",result[i])

------------------------------------------------------------------------------
LIKE || COMMENT || SHARE || SUBSCRIBE
------------------------------------------------------------------------------

SUPPORT ME
FOLLOW करना न भूले (free for all)


-----------|| THANKS FOR WATCHING ||-----------

HARSHIT JOSHI
Рекомендации по теме
welcome to shbcf.ru