Professional Documents
Culture Documents
CLASS – XI 2021-22
TERM – I
You are required to write the programs in your practical copy along with their outputs and submit to me
by 30th November 2021.
2. WAP to print whether a given character is an uppercase or a lowercase or a digit or any other
character.
3. Write a program in Python to input name and basic salary of an employee. Find the gross pay of the
employee as per the following allowances and deductions. Use meaningful variables.
4. A cloth showroom has announced the following festival discounts on the purchase of items, based on the
total cost of the items purchased.
Write a program to input the total cost and to compute and display the amount to be paid by the customer
after availing the discount.
Average Grade
>= 85 A
>= 70 B
>= 50 C
>= 40 D
Otherwise Fail
11. Write a menu driven program to accept a number from the user and check whether it is a ‘BUZZ’ number or
to input a number and print whether the number is a ‘SPECIAL’ number or not or to input a number and
display all the prime factors of the number.
1
4 4
9 9 9
16 16 16 16
13. Write a program in Python to draw the following pattern(WHILE LOOP) :
1
23
456
7 8 9 10
14. Write a program in Python to draw the following pattern(WHILE LOOP) :
A
AB
ABC
ABCD
15. Write a program in Python to draw the following pattern(WHILE LOOP) :
* * ** * * * *
*** ***
** **
* *
** **
*** ***
********
16. Write a program to input a list of integers and display the sum and average of all the perfect numbers in the
list.
17. L is a non empty list of integers. Print the smallest and largest integers of L along with their index.
18. Python Program to Generate a Dictionary that Contains Numbers (between 1 and n) in the Form (x, x*x).
20. Python Program to Create a Dictionary with Key as First Character and Value as Words Starting with that
Character.