You are on page 1of 27

Q5.

Develop a program such that the following options are


executed :

a. to find mean of a list


b. to find median value of a list
c. to find mode of a list of values
d. to find average age of students in a class of 20 students(allow
user to enter values)
e. exit

INPUT

Module
Code
OUTPUT
Q6. Develop a program such that the various slicing options with
strings and all other build in functions used with strings are shown
properly using various functions which should be defined in a file
STRINGS and then this file is to be imported in MENU.py where the
actual menu is shown and worked upon.
INPUT
Module
Code
OUTPUT
Q7. Develop a program using def( ) such that various pattern
options are defined in a file PATTERN.py , which is to be imported
in PRINTING.py for execution using a menu .Give atleast 10
different patterns .

INPUT
Module
Code
OUTPUT
Q 8. Develop a program using def( ) such that various functions
available in math library are designed and made use of under a
different name . For example : fabs can be defined as
absolutevalue( ) which find absolute value of the passed argument
and so on . Do this for atleast 10 functions of math library. All
these to be defined in NEWMATHs file and the menu is to be made
and used in the file USEMATHS.py.

INPUT
Module
Code
OUTPUT
Q9. Develop a program such that the following options are
executed :

a. to find a random number between 0 and 1


b. to find a random number between the two limits entered by the
user
c. to find a random integral number between 0 and 100
d. to show use of shuffle of random
e. to show use of randrange( )
f. exit
INPUT
Module
Code
OUTPUT
Q 10. Write an interactive program to generate a random number
between 1 to 10 and then with each number generated , associate a
question of computational thinking / cyber safety / error handling
/ Boolean algebra . Finally whenever the user wishes to quit , the
final result with a proper remark should be shown .

INPUT
Module
Code
OUTPUT

You might also like