Category: python simple programs
Python | Find the maximum element in a list using lambda and reduce()
Harry January 5, 2023
Output: 40
Python | filter numbers(that are not divisible by 3 and 4) from a list using lambda and filter()
Harry January 5, 2023
Output: [12, 24, 36]
Python | lambda function that returns the maximum of 2 numbers
Harry January 5, 2023
Output: Enter numbers: 1 2 2
Python | Convert all strings of a list to uppercase using lambda
Harry January 5, 2023
Output: [‘ONE’, ‘TWO’, ‘THREE’]
Python | Reverse and convert a string to uppercase using lambda
Harry January 5, 2023
Output: TNEMNGISSAYPOC
Python | Calculator using lambda
Harry January 4, 2023
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….