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 to implement linear search and binary search.
    6. Write a program to find factorial of a given number.
    7. Write a program to find that given number is Palindrome or not.
    8. Write a program to find that given number is Armstrong or not.
    9. Write a program to print Fibonacci Series.
    10. Write a program to convert decimal number into binary numbers.
    11. Write a program to calculate addition of two number using methods.
    12. Program to calculate average of numbers using function.
    13. Write A Program to Find the Area of a Rectangle Using Classes
    14. Write A Program to Append, Delete and Display Elements of a List Using Classes
    15. Write A Program to Create a Class and Compute the Area and the Perimeter of the Circle
    16. Write A Program to Create a Class which Performs Basic Calculator Operations
    17. Write A Program to Create a Class in which One Method Accepts a String from the User and Another Prints it.
    18. Write A Program that Reads a Text File and Counts the Number of Times a Certain Letter Appears in the Text File.
    19. Write A Program to Read a Text File and Print all the Numbers Present in the Text File
    20. 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