Category Archives: Python Programming

Python HashMap Implementation Using Dictionary

In this tutorial you’ll learn how to implement hashmap in python using dictionary. What is Hash Table or Hash Map? In short, Hash table is a data structure which stores data in an associative manner. In this table, our data is stored in a array format, where each data value have a unique key to… Read More »

Wikipedia API Python Tutorial

In this tutorial I’ll show you how we can implement Wikipedia API in Python to fetch information from a Wikipedia article. Let’s see how to do it. First we have to install Wikipedia. To install it, open your command prompt or terminal and type this command. That’s all we have to do. Now we can… Read More »

Python LCM – 2 Ways to find LCM

In this article, we’ll see different ways to find LCM in Python with program examples. Basically LCM is a smallest number that is divisible by both numbers (or all). Let us see how we can find lcm of two numbers in python. 1. Using Loop First we find the larger number of two given numbers.… Read More »

Python GCD – 4 Ways to Find GCD or HCF

Here I will show you 4 different ways to find GCD in Python using program examples. GCD also known as HCF (Highest Common Factor). So let’s see how we’ll do it. Method 1: Using Loop Output: hcf = 12 So in this program, first we assign values to n1 and n2, then we’ll find smaller… Read More »

Python Text to Speech Example

Here you will get python text to speech example. As we know, some people have difficulty reading large amounts of text due to dyslexia and other learning disabilities. Some people have basic literary levels. They often get frustrated trying to browse the internet because so much of it is in text form or on other… Read More »

How to Find Square Root in Python

Hello everyone, in this tutorial, I’ll show 3 ways to find square root in Python. Let’s see how to do it. 1. Using Exponent Output: enter a number: 64 square root: 8.0 In above program, first we’re taking a number from user as input and the entered value will be converted to int from string… Read More »

Caesar Cipher in Python

Hello everyone, in this tutorial you’ll learn about Caesar cipher in Python. If you have learned about cryptography then you should have known this term Caesar cipher. Well if you don’t know what is this then let me explain it to you. What is Caesar Cipher? In cryptography, Caesar cipher is one of the simplest and… Read More »

6 Ways to Generate Random Number in Python

In this tutorial, you will see how we can generate random number in Python. Random number means we can’t predict that which number will be returned or printed. Let’s see some different ways in python to generate random number. Ways to Generate Random Number in Python 1. using random.randint() We can not predict the output… Read More »