How to change case of string in Python
In this tutorial we will see how to change case of string in Python . Python string has various methods for changing the case of any string . They are as follows
In this tutorial we will see how to change case of string in Python . Python string has various methods for changing the case of any string . They are as follows
In this tutorial we will learn how to redirect print output to a text file in Python . But before going further let us have… Read More »How to redirect print output to a text file in Python
In this tutorial we will learn how to add multiple numbers in Python . By the end of this tutorial we will learn how to… Read More »How to add multiple 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
To work with Ms Excel and Python seamlessly we should know how to merge multiple excel files using Python . In this tutorial we will… Read More »How to merge multiple excel files using Python
To work with Ms Excel and Python seamlessly we should know how to append data in excel using Python . For this reason we will take two .xlsx file (named demo1.xlsx and demo2.xlsx) which will look like below
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 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 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 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 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