Skip to content
add two numbers in python

How to add two numbers in Python

How to add two numbers in Python is one of the most searched and easiest application of Python . In this tutorial we will learn how to add two numbers in Python using various ways

lambda expression in python

Lambda Expression in Python

Lambda expression is a single line function. It can take any number of inputs but the output is always one. The lambda expression can be used without a name. lambda expression is often called lambda function, anonymous function (since it can be used without name).

zip function in python

Zip function in Python

Zip function in Python creates a tuple taking same indexed elements from one or more given iterators and returns a zip-object containing all the tuples. If we typecast the zip-object into the list, then each element of the list will be a tuple.

filter function in python

Filter function in Python

Filter function in Python loops over each item of the given iterable and extracts the items that fulfill the condition by the given function and finally returns a filter-object (which is an iterator).

Enumerate Function in Python

Enumerate Function in Python

Enumerate function in Python creates tuple taking counter of the element and the element and returns a enumerate-object containing all the tuples . If we typecast the enumerate-object into the list, then each element of the list will be a tuple.

string in python

String in Python

String in Python is a collection of one or more characters . It can be surrounded by single quote , double quote , triple single quote or triple double quote . To create a multiline string we use triple single quote or triple double quote