Author: Harry
Python Turtle Star
Code to draw Python Turtle Star Output: Important Python turtle Commands Below are some simple turtle commands that are important and used to create graphics…
Hostel Management System Project in Python
In this article, we will build a Hostel Management System Project in Python with Graphical User Interface and database integration. We will use the MongoDB…
Python | Delete object of a class
Output: Rakesh 50000 Amit 60000 Rakesh 50000 Traceback (most recent call last): File “C:\CopyAssignment.py”, line 14, in <module> print(obj2.name, obj2.salary) NameError: name ‘obj2’ is not…
Python | Modify properties of objects
Output: Amit 60000
Python | Create a class that takes 2 parameters, print both parameters
Output: Rakesh 50000Amit 60000
Python | lambda function that returns the maximum of 2 numbers
Output: Enter numbers: 1 2 2
Python | Convert all strings of a list to uppercase using lambda
Output: [‘ONE’, ‘TWO’, ‘THREE’]
Python | Square numbers of a list using lambda
Output: [1, 4, 9, 16, 25]
Python | Reverse and convert a string to uppercase using lambda
Output: TNEMNGISSAYPOC
Python | Convert String to uppercase using lambda
Output: COPYASSIGNMENT
Python | Reverse a list using lambda
Output: [3, 2, 1]
Python | Reverse a String using lambda
Output: tnemngissAypoC
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….
Python | Square of a number using lambda
Output: Enter number: 525
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