0% found this document useful (0 votes)
2 views

PYTHON PROGRAMS

The document outlines a series of Python programming exercises aimed at developing various skills, including basic arithmetic operations, conditional statements, loops, and pattern printing. Each exercise focuses on a specific task, such as calculating sums, finding the greatest number, checking for odd/even, and generating sequences like Fibonacci and prime numbers. The exercises are structured to encourage hands-on practice with fundamental programming concepts.

Uploaded by

kingsaab7800
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

PYTHON PROGRAMS

The document outlines a series of Python programming exercises aimed at developing various skills, including basic arithmetic operations, conditional statements, loops, and pattern printing. Each exercise focuses on a specific task, such as calculating sums, finding the greatest number, checking for odd/even, and generating sequences like Fibonacci and prime numbers. The exercises are structured to encourage hands-on practice with fundamental programming concepts.

Uploaded by

kingsaab7800
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

PYTHON PROGRAMS

Exercise 1 Write the program to calculate the multiplication and sum of two
numbers.

Exercise 2 Write the program to find the greatest between two numbers.(using if,
else conditions)

Exercise 3 Write the program to find the greatest between three numbers.(using if,
else conditions)

Exercise 4 Write the program to input if the number is odd or even.(using if,else
conditions)

Exercise 5 Write the program to find the user input is string,integer or float.(Using
if,else condition)

Exercise 6 Write the program to check the number is divisible by 2 and 5 or


not.(using if,else condition)

Exercise 7 Write the program to input marks of five subjects, print total marks
obtained and print its percentage and Grade.(using nested if,else)

Exercise 8 Write the program to print the n natural numbers.(using loops)

Exercise 9 Write the program to print the sum of n natural numbers.(using while
and for loop)

Exercise 10 Write the program for user input, find the factorial of n numbers.(using
while and for loop)

Exercise 11 Write the program for user input to print the n prime numbers.(using
while and for loop)

Exercise 12 Write the program for user input to print the n Fibonacci of
numbers.(using while and for loop)

Exercise 13 Write the program to print the table of user input numbers.(using while
and for loop)

Exercise 14 Write the program to print different ( * ) patterns,like Square,Left


Triangle,Right Triangle, Pyramid shape and Rhombus shape.(using
nested loop)
Exercise 15 Write the program to print different numbering patterns,like Square,Left
Triangle,Right Triangle, Pyramid shape and Rhombus shape.(using
nested loop)

Exercise 16 Write a program to check if the integer or character is palindrome or


not palindrome.

You might also like