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

Показать описание
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
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