Laboratory Experiments:
1. Write a program to sum all the elements from n1 to n2 where n1 and n2 are positive integers
2. Input an array of n numbers and find separately the sum of positive numbers and negative numbers.
3. Write a program to search an element using linear search
4. Write a program to search an element using binary search.
5. Write a program to simulate stack.
6. Using a stack evaluate an arithmetic expression.
7. Write a program to multiply two matrices.
8. Write a program to find the roots of a quadratic equation
9.Write a program to Insert a number in a sorted array.
10. Write a Python Program to check whether the given string is palindrome or not using built in string manipulation methods.
11. Write a Python Program to read a word and prints the number of letters, vowels and percentage of vowels in the word using dictionary
12. Write a Python Program to check a given sentence is a pangram or not using function/Module.
13.Write a Python Event driven Program for file operations Press 1: to open file in read mode 2: open the file in write mode 3: current position of the file pointer #4: Reposition the pointer at the beginning 5: exit.
14.Write an Object oriented Python program to create two Time objects: currentTime, which contains the current time; and breadTime, which contains the amount of time it takes for a bread maker to make bread. Then we'll use addTime to figure out when the bread will be done. Write the printTime function to display the time when the bread will be done by the bread maker.
Note 1: In the practical Examination each student has to pick one question from a lot of all 14 questions.
Note 2: Change of program is not permitted in the Practical Examination.
Course Outcome (CO):
At the end of this course, the students will be able to
CO1: Apply object-oriented programming concepts to develop dynamic interactive Python applications.
CO2: Use the procedural statements: assignments, conditional statements, loops, method calls and arrays
CO3: Design, code, and test small Python programs with a basic understanding of top-down design.
CO4: Learn how to create GUI andsolve real-world problem using language idioms, data structures and standard library