PIL(Python imaging library) popularly known as pillow is an image manipulation library. It helps in processing images in different format in python. We can easily import this library and use to process image. We can easily install PIL in our …
Python has an input function to accept inputs from the user. Python 2 uses raw_input(prompt) function whereas python 3 uses input(prompt). prompt- a string, representing a default message before the input. This is not necessary. Input function will …
A python code can be run using multiple interfaces. Using CMD for this purpose is one of the easy and efficient ways. In order to run a python program in CMD, first of all open the CMD or terminal and …
You have to install python before starting to work in it. There are multiple ways and different versions of python available today. When you are done with the installing process of python you can run your program in the following …
A CSV file stands for comma separated values file is a text based format represents data found in spredsheet. Now we will see how to read CSV file in python? There are basically two methods to read the file :- …
Matplotlib is a Python library used for plotting the beautiful and attractive Graphs. In data science, visualization is the important step. By using visualization we can easily understand than how data is split. Matplotlib library is used to make different …
Indentation is a space given before writing a certain code. It is not so important in other programming language like C, C++, etc. But it has a major role in python. Python uses indentation to indicate a block of code. …
Expression “[n for n in range(10) if n%2]” will return a list in one go. This creates a list of odd numbers between 0 and 9. The for loop goes from 0 to 9 and the number which is not …
An array is basically a data structure which can hold one value at a time. It is a collection or ordered series of elements of the same type. Many of us gets confused whether list and arrays are the same …
Excel file is a spreadsheet which makes us easy to store data in a tabular form. Now the question is that how can we read data from the excel file while writing a python program? Firstly, we have to install …