Monthly Archives: July 2019

Python Pounds to Kilograms Conversion Program

Topic: Python Pounds to Kilograms Conversion Program – This Python Programming Tutorial will explain the Python code to input weight in pounds and convert into kilograms. The Formula for the Pounds to Kilograms Conversion e will use the following formula to convert the given pounds in kilograms. 1 Pound = 0.453592 Kilograms or 1 lb… Read More »

Loading

Python GCD Program by Successive Division

Python GCD Program by Successive Division – This Python Programming tutorial will explain the Pthon code to find Greatest Common divisor or HCF. The HCF stands for Highest common factor which is a second name of GCD. This progrram will calculate GCD of two positive inetegers using Improved version of Euclid’s algorithm – Succesive division… Read More »

Loading

Python GCD code using math.gcd() Function

Python GCD code using math.gcd() function – This Python programming tutorial explains the method of finding GCD of two numbers using math module’s gcd() function. What is Python gcd() functin of math module The math.gcd(a,b) function return the greatest common divisor of the integers a and b. Therefore, gcd(a,b) function will calculate the largest positive… Read More »

Loading

Python Swap Two Variables Without Temp Variable

Python Swap Two Variables Without Third – This Python programmin tutorial explains the Python Swap Two Vaibles Without Third Variable progrm.   # Write a Python program to swap # the values of two variables without # using a third variable # Author: www.EasyCodeBook.com (c) num1= int(input(‘Enter The value of num1 Variable:’)) num2= int(input(‘Enter The… Read More »

Loading

Python while loop Syntax Flowchart Example

Python while loop Syntax Flowchart Example – This Python programmingtutorial will explain in a simple and easy to understand way: The while loop statement in Python The Syntax of the while loop The flowchart of while loop The examples and working of while loop The Real Example of while loop The Python progam source code… Read More »

Loading

List of Primes Python Program

List of Primes Python Program – This Python programming tutorial will explain the Python code to show the list of all prime numbers between to given numbers. For example the list of prime numbers between 2 annd 10 is: 2, 3, 5, 7. We will write a Python function show_all_prime(num1,num2) that will display the list… Read More »

Loading

isprime Python Function Efficient Logic

isprime Python Function Efficient Logic – This Python programming tutorial will explain: Definition of a Prime Number with examples Is 1 prime or Composite? Defining a Composite number with examples How to Write isprime python function? Explanatin of the Logic of isprime Python function The source code and output of the python program What is… Read More »

Loading

Perfect Number Python Program

Perfect Number in Python – This Python programming tutorial will explain what is a perfect number with examples. It also provides a source code in Python for checking a number if it is a perfect number or not. What is the Definition of a Perfect Number in Mathematics In number theory, we may define a… Read More »

Loading

Python Program Print Star Pattern 6

Python Program Print Star Pattern 6 – This Python Programming Tutorial will explain the Python program to print the star pattern number 6 as shown in the following figure: The Source Code of Python Program to Print Star Pattern 6 # Write a Python program to display # the following star pattern 6 # using… Read More »

Loading