Python | Create a class, create an object of the class, access, and print property value

Output: 10

Continue Reading

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

Output: 40

Continue Reading

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

Output: [12, 24, 36]

Continue Reading

Python | lambda function that returns the maximum of 2 numbers

Output: Enter numbers: 1 2 2

Continue Reading

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

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

Continue Reading

Python | Square numbers of a list using lambda

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

Continue Reading

Python | Reverse and convert a string to uppercase using lambda

Output: TNEMNGISSAYPOC

Continue Reading

Python | Convert String to uppercase using lambda

Output: COPYASSIGNMENT

Continue Reading

Python | Reverse a list using lambda

Output: [3, 2, 1]

Continue Reading
Drawing letter A using Python Turtle Today, we will learn how to draw the letter 'A' using Python Turtle. We all know how to write the letter 'A' using pen and paper, but would it not be great if you had a turtle, who can take your commands and draw it for you in whatever size or color you want? This is what Python Turtle does. It is a python library used to create graphics, patterns, and shapes, but it can be used to draw almost anything.

Drawing letter A using Python Turtle

Today, we will learn how to draw the letter ‘A’ using Python Turtle. We all know how to write the letter ‘A’ using pen and…

Continue Reading

Python | Reverse a String using lambda

Output: tnemngissAypoC

Continue Reading

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

Python | Square of a number using lambda

Output: Enter number: 525

Continue Reading

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

Python | lambda with None

Output: None

Continue Reading

Python | lambda with pass statement

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

Continue Reading

Python | Add numbers using lambda

Example 1: Output: Enter 1st number: 5Enter 2nd number: 6Enter 3rd number: 7Addition result is: 18 Example 2: Output: Enter numbers: 5 4 3 2…

Continue Reading

Python | Print Namaste using lambda

Output: Namaste

Continue Reading
Spell Checker in Python

Spell Checker in Python

Today, we will be creating a GUI application of spell checker in Python. We will use two famous libraries in Python that can be used…

Continue Reading

Python | Check type of a NumPy Array

Output: <class ‘numpy.ndarray’>

Continue Reading