Python Program to Display/Print Powers of 2|Python programs for begginers|Recursion|Lambda Function

preview_player
Показать описание
The above video is about writing a program to display the powers of 2 by using lambda functions and recursive functions
Using Lambda function:
-giving user input for the number of terms.
-using a lambda funciton within map and convert it into list using list() method.
-Looping over each term and printing the respective power of 2 in the list.
Using Recursive Function:
-create a recursive function for powers of 2
-giving user input for the number of terms.
-looping over the number of terms using range() function
-printing the powers.
Рекомендации по теме
visit shbcf.ru