0% found this document useful (0 votes)
97 views1 page

LIst of Python Programs

This document lists 22 Python programs for practice including programs to find the factorial, check if a year is a leap year, determine if a number is odd or even, check if a number is prime, check if a number is a palindrome, find the sum of cubes of natural numbers, check if a number is perfect, find prime numbers in a range, find the sum of squares of natural numbers, reverse a number using a while loop, find the square root of a number, swap two variables using a third variable, find the average of numbers using a for loop, find the largest of 3 numbers using nested if-else, find the area of a triangle based on base and height, find the lowest common multiple of two numbers
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
97 views1 page

LIst of Python Programs

This document lists 22 Python programs for practice including programs to find the factorial, check if a year is a leap year, determine if a number is odd or even, check if a number is prime, check if a number is a palindrome, find the sum of cubes of natural numbers, check if a number is perfect, find prime numbers in a range, find the sum of squares of natural numbers, reverse a number using a while loop, find the square root of a number, swap two variables using a third variable, find the average of numbers using a for loop, find the largest of 3 numbers using nested if-else, find the area of a triangle based on base and height, find the lowest common multiple of two numbers
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

List of Python programs for Practice

1. Write a python Program to find FACTORIAL of a given number.


2. Write a python Program to check whether a year is LEAP YEAR or not.
3. Python program to check if the input number is odd or even.
4. Write a python Program to check whether a number is Prime or not.
5. Write a python Program to check whether a number is PALINDROME NUMBER
or not.
6. Write a python Program to find SUM OF CUBES OF N NATURAL NUMBERS
7. Write a python Program to check whether a number is PERFECT NUMBER or
not.
8. Write a python Program to find the PRIME NUMBERS IN THE GIVEN RANGE.
9. SUM OF SQUARES OF N NATURAL NUMBERS
10.Write a python Program to find Reverse a Number using while Loop.
11.Write a python Program to find Square Root of a Number.
12.Write a python Program to Swap Two Variables using Third Variable.
13.Write a python Program to Find Average of n Numbers using For Loop.
14.Write a python Program to Find Largest of 3 Numbers using nested if-else.
15.Write a python Program to Find Area of Triangle based on Base and Height.
16.Write a python Program to Find LCM of Two Numbers.
17.Write a python Program to Find HCF (GCD) of Two Numbers.
18.Write a python Program to Find Reverse a String.
19.Write a python Program to Print Fibonacci Series up to N Term.
20.Write a python Program to Check whether a number is Armstrong Number or
not.
21.Write a python Program to Find nPr (Permutation) of a number.
22.Write a python Program to Find nCr (Combination) of a number.

You might also like