Python Lab Question Bank-Part-A, B-SEE Studs
Python Lab Question Bank-Part-A, B-SEE Studs
2. Write a Program to Prompt for a Score between 0 and 100 and display the result as below:
O A+ A B+ B C P F
90-100 80-89 70-79 60-69 55-59 50-54 40-49 < 40
Outstanding Excellent Very Good Good Above Average Average Poor Fail
4. Enter the numbers till the user enters word “end”, Count and print the number of Odd,
Even, Positive number, Negative number, Prime number and average in each case.
5. Write a python program to display the Fibonacci sequence between the intervals specified
by the user and also print the count of odd, even and prime Fibonacci numbers in the same
interval.
6. Write a Program to compute area of hexagon, area of a pentagon, area of octagon, area of
decagon using functions
7. WAP that accepts a sentence and calculate the number of vowels, consonants, words,
digits, blanks, uppercase letters and lowercase letters.
9. Write Python Program to Sort Numbers in a List in Ascending Order Using Bubble Sort
by Passing the List as an Argument to the Function Call.
10. Prompt the user to enter list of marks, increase the odd marks by 1 and print the list of
modified marks, average marks.
11. Write a program to find Mean, Variance and Standard Deviation of List Numbers
12. Write a python program to add/subtract two matrices
13. Write a python program to input information for n number of students as given below:
Name, Registration number, Attendance, Total marks. The user has to specify a value for
n number of students. The program should output the registration number and marks of a
specified student given his name.
14. Write a program to search an element using Binary Search of a Sorted List/ Linear search.
15. Write a Program to sort an array in ascending/ descending order using Bubble sort/selection
sort/Insertion sort.
Part -B
1. Write a program to print the number of lines, words, and characters present in the given
file.
2. Write a python program to find the longest word in a file. Get the file name from the user.
3. Write a Python program to create a dictionary in a CSV file with the heading USN, NAME,
Attendance ,Marks, then read and display the content of that CSV file
4. Write a Python Program to count the number of vowels present in a string using sets
5. Write Python Program to Calculate Area and Perimeter of different Shapes using
Polymorphism
6. Write a python program to demonstrate polymorphism using classes Vehicle, Bike, Car,
Aeroplane.
7. Write a program to simulate a bank account with support for DepositMoney,
WithdrawMoney and ShowBalance operations.
8. Write a program to demonstrate multiple inheritance
9. Write a python program for simulation of Amplitude Modulated signal with time domain
representation.
10. Write a python program to simulate removal of noise from signals.
11. Write a program to compute DFT and IDFT for a discrete signal
12. Write a program to extract In-phase and quadrature phase signals from a random data.
13. Write a program to design a IIR Butterworth Low pass/High pass/Bandpass/Band stop
filter for a given specifications
14. Write a program to design a FIR low pass filter using Hamming Window
15. Write a program to simulate digital modulation technique ON-OFF Keying.