Operation on Images Part 1

The analysis and manipulation of a digital image is called image processing. Python is widely used for image processing applications to suit the need of the user. Let us see how image processing is done in Python.  We will use a library called Pillow. Let us first install Pillow. In the Search Bar type cmd.... Continue Reading →

Drawing using Turtle

Turtle Graphics is a learning environment for Python programming inspired by Logo which is like a board that lets you command a turtle to draw all over the board using certain commands. Let us import turtle and see how it works. The turtle shape is a triangle by default. Let us try changing it to... Continue Reading →

Calendar in Python

The module called calendar allows you to output calendars and provides additional useful functions related to the calendar. By default, these calendars have Monday as the first day of the week, and Sunday as the last (the European convention). The 4 parameters are 2018,2,1,6.  2018 is the year , 2 is the width in character of... Continue Reading →

What is the date and time ?

Let us learn to print the current date and time using Python. We will be using the datetime module for this purpose. First we import date from datetime module. According to the python documentation, the datetime module supplies classes for manipulating dates and times in both simple and complex ways. We assign today's date to the... Continue Reading →

Introduction to Matplotlib

Today we are going to explore a very interesting library in python called Matplotlib. Matplotlib is a library for making  plots of arrays in Python. It is used for data visualization and data science. Let us check it out. First we have to install matplotlib. In Windows, type cmd in the Search . This takes you... Continue Reading →

Searching for an element using Binary Search

In this blog we will see how a particular element can be searched in a given list.  We will use a technique called Binary Search. For Binary Search, the elements must be sorted. According to Wikipedia, In computer science binary search, also known as half-interval search, logarithmic search, or binary chop, is a search algorithm that finds the position of a target value... Continue Reading →

Measure time of a Python Code

Today we will see how to measure the time of execution of a python code. For this purpose we will be using the timeit module. This module gives simple ways to time small pieces or snippets of Python code. It is important to know how long your code takes to execute. This can tell you... Continue Reading →

Matrix Operations using Python

In the previous blog ,we have seen what is an array and we have seen why Numpy is used. Let us now perform some matrix operations using numpy. Let us see arrays first.  Remember that matrices are strictly 2 dimensional but arrays are N dimensional. Also remember that when you perform operations on numpy arrays,... Continue Reading →

Powered by WordPress.com.

Up ↑