Category Archives: Python Programming Language

Python Random Numbers Generation

The process of Python Random Numbers Generation is very simple and easy to understand. Steps To Generate a Random Number in Python Just follow these steps: 1. Import random module 2. Use randint() method of random module to generate an integer number within a specific range. Example: Generate a Random Number Between 1 and 50… Read More »

Loading

Python Program Prime Between Two Numbers

Python Program Prime Between Two Numbers In this Python programming tutorial we shall learn to write and execute a Python program to print all the prime numbers between the two given  numbers. Program statement: Write a Python program to input two numbers and print all the prime numbers between these two numbers. Actually we want… Read More »

Loading

Python Program Digits Product

In this tutorial we shall learn to write a Python program to print product that is multiplication of digits of a given number. Program statement: Write a program to display product of the digits of a number accepted from the user. How this Python Program Product of digits Works? Dear readers, when we divide a… Read More »

Loading

Python KG to POUNDS and Vice Versa

Python Program to convert kilo grams into pounds and vice versa. Formula to convert kg to pounds and vice versa To convert pounds into kilograms, divide the number of pounds you have by 2.2046. Program statements kg to pounds and vice versa ”’ Python Program to convert kg to pounds and vice versa ”’ ”’… Read More »

Loading

Python Remove Vowels in String Program

Python Remove Vowels in String Program – This Python program will take an input string from user. It will remove any vowels in this string and will display the output string after removing vowels in that input string. We will use: input() function to display message and get the input string from the user. We… Read More »

Loading

Python Convert Millimeters to Inches using Function

Python Convert Millimeters to Inches using function – This Python program will input millimeters  from the user. It will convert mm into inches. The Formula To Convert mm into Inches To convert millimeters into inches, Multiply millimeters by 0.0393701 or divide millimeters by 25.4. Source Code – Python Function To Convert mm to Inches #Python… Read More »

Loading

Python Count Each Vowel in Text File Program

Python Count Each Vowel in Text File Program – In this File Handling tutorial, we will discuss a Python File Program to show count of each vowel in the given text file. How This Program Works? First of all, we have to create a text file with name mytextfile.txt in a textfile folder of D… Read More »

Loading