Python Lab Manual

List of Experiment
1. Write a program that declares 3 integers, determines and prints the largest and smallest in the group.
2. Write a program that accepts two numbers from the user and print their sum.
3. Write a program to calculate simple interest.
4. Write a program to find that given year is leap year or not.
5. Write a program for generation of pyramid.

Pyramid 1
*
* *
* * *
* * * *
Pyramid 2
* * * *
* * *
* *
*
Pyramid 3
*
* *
* * *
* * * *
Pyramid 4
*
* * *
* * * * *
* * *
*
Pyramid 5
1
1 2
1 2 3
1 2 3 4

 

6. Write a program to implement linear search and binary search.
8. Write a program to find factorial of a given number.
9. Write a program to find that given number is Palindrome or not.
10. Write a program to find that given number is Armstrong or not.
11. Write a program to print Fibonacci Series.
12. Write a program to convert decimal number into binary numbers.
13. Write a program to calculate addition of two number using prototyping of methods.
14. Program to demonstrate function overloading for calculation of average.