You are on page 1of 35

Practical Assignment-14

DATE:28/09/2022

Write a menu driven program to maintain the data of students (roll,


name and marks)
Program Code:
Output:
Practical Assignment-15

DATE:12/10/2022

Write a program in python to create a dictionary 'dc' having keys as name of


students and value as marks of students. The final dictionary created mus
look like 'dc' = {'ajay':75 , 'vipul':89, 'ravi':83}

Program Code:

Output:
Practical Assignment-16
DATE:02/11/22

Write a program in python to input roll number as keys and marks in physics
chemistry maths PCM total and percentage as value where total percentage is
to be calculated this must take place for as many numbers of student has user
wants. Finally, a dictionary looks like:
Stu= {5:[85,36,91,212,70.6], 8:[70,37,90, , ]................}.
Program Code:
Output:
Practical Assignment-17
DATE:07/11/22

Write a program in python to sort a list in the ascending order using buble
sort technique.
Program Code:
Output:
Practical Assignment-18
DATE:09/11/22

Write a program in python to make a user defined function find_large that


returns the largest number out of the three numbers passed.
Program Code:

Output:
Practical Assignment-19
DATE:09/11/22

Write a program to search an item using Linear search technique.


Program Code:
Output:
Practical Assignment-20
DATE:9/11/2022

Write a program to search an item using Binary search technique.


Program Code:
Output:
Practical Assignment-21
DATE:15/11/2022

Write a program that takes two inputs


1 – A Character (String)
2 – an Integer and pass it into a function draw pattern that prints a pattern.
Program Code:

Output:
Practical Assignment-22
DATE:15/11/2022

Write the python program to input a list and pass this list into a function
sel_sort so that this list can be sorted by selection sort technique.
Program Code:

Output:
Practical Assignment-23
DATE:16/11/2022

Write a python program to create a module containing functions bub_sort.


Name this module as sorting.py and also create a program sortingtest.py to
use modules sorting.py
Program Code:

Output:
Practical Assignment-24
Date:23/11/2022

Write a python program having two python programs


1. A module loan.py it contains three functions
a) calculate simple interest
b) calculate compound interest
c) calculate EMI
2. main_program (it calls all the function)
Program Code:
Output:
Practical Assignment-25
DATE:29/11/2022

Write a python program to input a string and display following according


show below:
No. of Characters:
No. of Words:
No. of Alphabets:
No. of Vowels:
No of Special Characters:
No. of Digits:
Program Code:

Output:
Practical Assignment-26
DATE:30/11/2022

Write a python program to input two sorted list in ascending order and
passed to a function merge ().the function clubs these two list in a such a
manner that list will be in ascending order only.
Program Code:

Output:
Practical Assignment-27
DATE:02/12/2022

Write a program in python to input employee no., Name, Code and Basic
salary for n number of employees and calculate da, hra, tax, gross and net.
Display a formatted report.
Program Code:
Output:
Practical Assignment-28
DATE:12/12/2022

Write a program in python to input a string and pass through function that
returns a string having all the words with length 4 or more.
Program Code:

Output:
Practical Assignment-29
DATE:14/12/2022

Write a python program to input a list of a numbers. Call a function lshift() to


shift every item of a list one place left.
Program Code:

Output:
Practical Assignment-30
DATE:20/12/2022

Write a program in python to input a list of numbers. Call a function rshift()


to shift every item of the list one place right.
Program Code:
Output:
Practical Assignment-31
DATE:20/12/2022

Write a program in python to input a decimal number and convert it into


binary & octal using a function dec_to_bin ().
Program Code:
Output:
1.

2.

You might also like