Posted in allcategorites programs in python python simple programs

Python | Find the maximum element in a list using lambda and reduce()

Output: 40

Continue Reading
Posted in allcategorites programs in python python simple programs

Python | filter numbers(that are not divisible by 3 and 4) from a list using lambda and filter()

Output: [12, 24, 36]

Continue Reading
Posted in allcategorites programs in python python simple programs

Python | lambda function that returns the maximum of 2 numbers

Output: Enter numbers: 1 2 2

Continue Reading
Posted in allcategorites programs in python python simple programs

Python | Convert all strings of a list to uppercase using lambda

Output: [‘ONE’, ‘TWO’, ‘THREE’]

Continue Reading
Posted in allcategorites programs in python python simple programs

Python | Square numbers of a list using lambda

Output: [1, 4, 9, 16, 25]

Continue Reading
Posted in allcategorites programs in python python simple programs

Python | Reverse and convert a string to uppercase using lambda

Output: TNEMNGISSAYPOC

Continue Reading
Posted in allcategorites programs in python python simple programs

Python | Convert String to uppercase using lambda

Output: COPYASSIGNMENT

Continue Reading
Posted in allcategorites programs in python python simple programs

Python | Reverse a list using lambda

Output: [3, 2, 1]

Continue Reading
Posted in allcategorites programs in python python simple programs python-short-tutorial

Python | Calculator using lambda

Output: PS C:\CopyAssignment.py” Enter 1. Addition 2. Subtraction 3. Multiplication 4. Division 5. Exit Enter choice: ds Enter integer values only! Enter 1. Addition 2….

Continue Reading
Posted in allcategorites programs in python python simple programs

Python | Square of a number using lambda

Output: Enter number: 525

Continue Reading