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
Posted in allcategorites programs in python python simple programs python-short-tutorial

Python | Multiply numbers using lambda

Example 1: Output: Enter 1st number: 2Enter 2nd number: 3Enter 3rd number: 4Multiplication result is: 24 Example 2: Output: Enter numbers: 4 5 6 7840

Continue Reading
Posted in allcategorites programs in python python simple programs

Python | lambda with None

Output: None

Continue Reading
Posted in allcategorites programs in python python simple programs

Python | lambda with pass statement

Output: File “C:\CopyAssignment.py”, line 1 output = lambda: pass ^^^^ SyntaxError: invalid syntax

Continue Reading