Python - Basic Articles
Given a list of numbers, the task is to find the average of that list. Average is the sum of elements divided by the number… Read More
We need to take two lists in Python and merge them into one. Finally, we display the sorted list. Examples: Input : list1 = [25,… Read More
Given an alphanumeric string, extract maximum numeric value from that string. Alphabets will only be in lower case. Examples: Input : 100klh564abc365bgOutput : 564Maximum numeric… Read More
In Python, id() function is a built-in function that returns the unique identifier of an object. The identifier is an integer, which represents the memory… Read More
Prerequisite : Lambda in Python Given a list of numbers, find all numbers divisible by 13. Input : my_list = [12, 65, 54, 39, 102,… Read More
Python round() function is a built-in function available with Python. It will return you a float number that will be rounded to the decimal places… Read More
The sum of numbers in the list is required everywhere. Python provides an inbuilt function sum() which sums up the numbers in the list.  Sum()… Read More
Given a string that has set of words and spaces, write a program to move all spaces to front of string, by traversing the string… Read More
If you love working on image processing and video analysis using python then you have come to the right place. Python is one of the… Read More
In Python, divmod() method takes two numbers and returns a pair of numbers consisting of their quotient and remainder. In this article, we will see… Read More
Given three numbers a b and c, the task is that have to find the greatest element among in given number  Examples: Input: a =… Read More
Python float() function is used to return a floating-point number from a number or a string representation of a numeric value. Example: Here is a… Read More
Python String isspace() method returns “True” if all characters in the string are whitespace characters, Otherwise, It returns “False”. This function is used to check… Read More
chr() function returns a string representing a character whose Unicode code point is the integer specified. chr() Example: Python3 num = 97 print("ASCII Value of… Read More
In Python programming, Operators in general are used to perform operations on values and variables. These are standard symbols used for logical and arithmetic operations.… Read More
The Python abs() function return the absolute value. The absolute value of any number is always positive it removes the negative sign of a number… Read More
Python bool() function is used to return or convert a value to a Boolean value i.e., True or False, using the standard truth testing procedure. … Read More
There is a large set of Python operators that can be used on different datatypes. Sometimes we need to know if a value belongs to… Read More
Given a string consisting of alphabets and other characters, remove all the characters other than alphabets and print the string so formed. Example Input: str… Read More
We are given n arrays of any size which may have common elements, we need to combine all these arrays in such a way that… Read More