Posts from Python

Python program to create a dice game using Turtle

By Abinash Reddy

We have seen and played many dice games link snake-ladder, poker, etc. Have you ever wonder how to build them? In this article, we will build a simple dice game in Python using Tur.... Read More

Elias Gamma Encoding in Python

By Ranjeet V

In this tutorial, we are going to learn Elias Gamma Encoding in Python. Elias Gamma Encoding has been developed by Peter Elias and it is used to encode a sequence of positive integ.... Read More

Difference Between json.dump() and json.dumps() in Python

By Ranjeet V

In this Python tutorial, we will discuss the difference between json.dump() and json.dumps(). As we know, JSON stands for JavaScript Object Notation. It is a lightweight data forma.... Read More

Operations on Set Objects in Python with Examples

By Sai Mukesh Reddy Gutha

Hi Learner! In this article, we are going to learn to find the common characters of two strings using sets in Python. Let us see how simple it can be to find the common characters.... Read More

Finding Magnitude of a Complex Number in Python

By Sai Mukesh Reddy Gutha

Hello! In this article, We use Python to get the Magnitude of a Complex Number using a simple snippet. First, let us learn the basics of complex numbers in Python. Complex Numbers .... Read More

MasterCard number validation using Regular Expression in Python

By Abinash Reddy

In this article, we will learn how to check whether the given string is a valid MasterCard number or not using Regular Expression in Python. A valid MasterCard number must satisfy .... Read More

howdoi in Python

By Ranjeet V

Hello everyone, in this post, we will learn about an interesting tool howdoi in Python. Python howdoi is a command-line tool that is very helpful especially for beginners. Using th.... Read More

How to get Users of Windows/Linux Systems using Python?

By Sai Mukesh Reddy Gutha

Hello Geek! In this article, we will use Python to get the current users on the Windows and Linux Systems. The method that we are going to use to get the current users is users(). .... Read More