Latest Posts From Vijaykrishna Ram

Python Timedelta

How to Work with Python TimeDelta?

Hello everyone! In today’s article, we’ll be taking a look at using the Python timedelta object. This object is really useful if you want to represent an instance of time, as an object. As opposed to an integer / float number, this is an actual object. The advantage is that it gives us more flexibility […]

Python Heapq Module

Python heapq Module: Using heapq to Build Priority Queues in Python

Hello everyone! In today’s article, we’ll be looking at using the Python heapq Module. This modules gives us a quick and easy way to build any type of priority queue for your application. To understand more about this module, let’s take a closer look. Priority Queue as a Min-Heap A Priority Queue is a queue […]

Python Io Module

Python IO Module: The Complete Practical Reference

Hello everyone! In today’s article, we’ll be looking at using the Python IO Module. This module is quite useful when you want to perform file-related I/O operations (eg. file reading/writing) While you can use the normal read() and write() methods to read/write to a file, this module gives us a lot more flexibility regarding these […]

Python Facebook Login

Using Selenium in Python to Automate Facebook Login

Hello everyone! In today’s article, we’ll be looking at using Python to automatically login to Facebook. This will be a fun experiment that will give you a glimpse into web-browser automation using Python’s Selenium web driver. So let’s get right into the topic and create a script that will visit the Facebook page, enter the […]

Python Http Server

Using Python HttpServer as a simple HTTP Server

Hello everyone! In today’s article, we’ll take a look at using Python HttpServer. This module serves as a very quick and easy way to start a local Http Server on your network. Earlier, in Python 2.7, this module was called HttpServer. But with Python3, this module has been merged into the http.server module. Let’s get […]

Python With

Context Managers – Understanding the Python with keyword

The Python with statement is a very useful. This has been there since Python 2.5, and it’s been an ever-present feature used by almost every Python application now! What’s so useful about this statement, so much that everyone uses it? The most useful thing (the only thing in fact!) it does is that it opens […]