Monthly Archives: May 2021

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

Python Print Star Patterns 14 Programs

Python Print Star Pattern Shapes – In this Python Programming tutorial, we will discuss printing different star patterns, shapes, pyramids, triangles, squares etc using nested for loops. The Program Logic Normally we use nested for loops to print star shapes in Python. For example, the following Python program will need two nested for loops. The… Read More »

Loading

Python Number Guess Game Project Made Easy

Python Number Guess Game Project Made Easy – In this Python Project for beginners we will explain the code and logic of the popular number guessing game program in Python programming language. How Python Number Guessing Project Works Import Python Modules :- random and math First of all we will include some Python modules which… Read More »

Loading

Python Prime Factors Program

Python Prime Factors Program – This Python program will take a number as input from the user. It will display prime factors of that number. We will study prime factors before writing the Python program to find them. Definition of Prime Factor A factor that is a prime number is called a Prime Factor. We… Read More »

Loading

Python Recursion With Example Recursive Function

Python Recursion With Example Recursive Function – In this Python tutorial we will learn the following important concepts about Recursion in Python Programming Language. What is Recursion? When to use Recursion? Advantages of Recursion Disadvantages of  using Recursion Recursive Function Base Case of Recursion Recursive Case for Recursion Factorial Recursive Function Identifying Base condition and… Read More »

Loading

Array Numbers Factorials in C++

Array Numbers Factorials in C++. This is a C++ program using arrays and loops. This program will input five numbers in array. It will find factorials of each element of array and place them in a second array. How This C++ Program Works? 1. First of all declare required arrays and variables. int a[5],b[5],i,n,c; long… Read More »

Loading