Loop Control Structures in Python Programming
Explore loop control structures in Python programming. Master the art of iteration and learn how to efficiently manipulate loops to control program flow and manage data.
Q. Write a Python program to print all natural numbers from 1 to n using a while loop.
Q. Write a Python program to print all natural numbers in reverse (from n to 1) using while loop.
Q.Write a Python program to print all alphabets from a to z using a while loop.
Q. Write a Python program to print all even numbers between 1 to 100 using a while loop.
Q. Write a Python program to print all odd numbers between 1 to 100 using a while loop.
Q.Write a Python program to find the sum of all natural numbers between 1 to n.
Q.Write a Python program to find the sum of all even numbers between 1 to n.
Q.Write a Python program to find the sum of all odd numbers between 1 to n.
Q.Write a Python program to print a multiplication table of any number. Take user input.
Q.Write a Python program to count a number of digits in a number.
Q. Write a Python program to find the first and last digits of a number.
Q. Write a Python program to find the sum of the first and last digits of a number.
Q. Write a Python program to swap the first and last digits of a number.
For Free, Demo classes Call: 02071171500
Registration Link: Click Here!
Q. Write a Python program to calculate the sum of digits of a number.
Q. Write a Python program to calculate the product of digits of a number.
Q. Write a Python program to enter a number and print its reverse
Q.Write a Python program to check whether a number is a palindrome or not.
Q. Write a Python program to find the frequency of each digit in a given integer.
Q.Write a Python program to accept an integer number and print the frequency of each digit present in the number.
Q.Write a Python program to enter a digit and print it in words.
Q.Write a Python program to find the power of a number using a for loop.
Q.Write a Python program to calculate the factorial of a number.
Q. Write a Python program to find the HCF (GCD) of two numbers.
The mathematical term GCD (Greatest Common Divisor) describes finding the biggest common factor between two values. The greatest positive integer that divides two or more numbers that are not all zeros is called the GCD. H.C.F. is another name for GCD (Highest Common factor).
Q.Write a Python program to find the LCM of two numbers.
Q. Write a Python program to check whether a number is a Prime number or not
Q.Write a Python program to print all Prime numbers between 1 to n.
Q. Write a Python program to find the sum of all prime numbers between 1 to n.
For Free, Demo classes Call: 02071171500
Registration Link: Online Python Training in Pune!
Q. Write a Python program to check whether a number is Armstrong number or not.
Q.Write a Python program to print all Armstrong numbers between 1 to n.
Q.Write a Python program to print Fibonacci series up to n terms.
Author:-
Deepali Shinkar
Call the Trainer and Book your free demo Class For Python
Call now!!! | SevenMentor Pvt Ltd.
© Copyright 2021 | SevenMentor Pvt Ltd.