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

Python | Check type of a NumPy Array

Output: <class ‘numpy.ndarray’>

Continue Reading

Iterate over a string in Python

Output for all methods: C o p y A s s i g n m e n t

Continue Reading

Python | upper() and lower() methods | Convert a string to uppercase or lowercase letters

Output: copyassignment COPYASSIGNMENT

Continue Reading

Python | join() | Join list of strings

Output: str1 str2 str3 str1 and str2 and str3

Continue Reading

Python | isalnum() method | check if a string consists only of alphabetical characters or numerical digits

Output: True False

Continue Reading

Python | isupper() and islower() methods to check if a string is in all uppercase or lowercase letters

Output: True False True False

Continue Reading

Python | count substring in a String | count() method

Output: 2 2 1

Continue Reading

Python | enumerate() on String | Get index and element

Output: <–Index–> VS <–Element–> 0 a 1 S 2 t 3 r 4 i 5 n 6 g

Continue Reading

Python | Convert a String to list using list() method

Output: [‘a’, ‘S’, ‘t’, ‘r’, ‘i’, ‘n’, ‘g’]

Continue Reading

Python Programs on Functions

Continue Reading

Blood Bank Management System Project In PHP

This tutorial is going to be an exciting and thrilling one as we are going to create a blood donation and blood Bank Management System…

Continue Reading
Wishing Happy New Year 2023 in Python Turtle

Wishing Happy New Year 2023 in Python Turtle

Guess what’s this time for? Yes, this is the time to say Hello to 2023! 2023 is approaching and if you want to wish Happy…

Continue Reading

Retrieve a module path in Python: 5 Methods

Now, you can use this ‘a_module’ inside your program but do you know where Python looks for modules or retrieve a module path? Let’s check….

Continue Reading

How to get a function name as a string in Python?

Today, we will see the two most used methods to get a function name as a string in Python. Using __name__ to get a function…

Continue Reading