In Python Lists are used to store multiple items in a single variable. There are multiple built-in…
Tag: Python
Most commonly used list operations in Python
Here we will describe the commonly used list operations in Python # How to create an empty list ? #…
How to merge multiple PDF files using Python?
Use case : If you have multiple files for example chapter wise question papers etc. and you need to have…
Over the Wall – 0/1 knapsack ( Smallest number of boxes required to build two towers such that each of them has least height )
Ramu and Jithin want to watch the grand finale, but unfortunately, they could not get tickets to the match. However,…
How to create a Airflow DAG(Scheduler) to execute a redshift query ?
Use case : We have a redshift query (an insert sql ) to load data from another table on daily…
How to create a m x n random matric in Python without using built in functions (numpy etc)
There are some scenario , where you need to create an m x n random matric A without using built…
What are the different Python List Methods?
In Python Lists are used to store multiple items in a single variable. There are multiple built-in methods that you can use…
What are the Unix Specific Services in Python ?
The following are the unix specific services in Python posix : The most common POSIX system calls (This module provides…
Python throwing as NameError: name ‘__file__’ is not defined – Solution
On Executing os.path.dirname(os.path.realpath(__file__)) in python interactive shell, you will get the error NameError: name ‘__file__’ is not defined. This is…
How to convert xls to csv ? I can see first header column got shifted to next column- Solved
The requirement is to convert and xls to csv using python. Initially we used pandas , pandas.read_excel to read an…
Python-How to extract multiple words between two strings-(Extracting word between {})
Here we will see how to extract string between two specific character/string. This is a use case when you want…