0% found this document useful (0 votes)
37 views44 pages

Python Project

Uploaded by

jaivirsing009
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views44 pages

Python Project

Uploaded by

jaivirsing009
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 44

f

PRACTICAL
FILE
ON
PYTHON
PROGRAMMING

SUBMITTED BY : -
GURAMRIT SINGH SONI
CLASS - XI-D
ROLL NUMBER - 9

Page 1/44


f

Serial Question Page Teacher's


No. No. Signature

1 Input two numbers and display larger/ 5


smaller number.

2 Input three numbers and display 7


largest/smallest number.

3 Input two numbers and display their 9


sum.

4 Input length and breath of a rectangle 11


and display it’s area.

5 To assign first five multiples of a 13


number to five variables and print
them.
6 Write a python program to generate 15
the given pattern using nested loop.

7 Write a python program to input an 17


integer and check if it’s prime or not.

8 Write a python program to compute 19


the Greatest Common Divisor and
Least Common Multiple of two
integers.
9 Write a python program to compute 21
factorial of an inputted integer.

10 Write a python program to determine 23


whether an inputted character is
uppercase, lowercase character, digit
or any other character.

Page 2/44


f

Serial Question Page Teacher's


No. No. Signature

11 Write a program that imputes a list, 25


replicates it twice and then prints the
sorted list in ascending and
descending orders.
12 Write a program to calculate the mean 27
of a given list of numbers.

13 Write a program to search for an 29


element in a given list of numbers.

14 Write a program to count the 31


frequency of a given element in list of
numbers.

15 Write a program to check if there are 33


multiple maximum elements in a tuple
or not.

16 Write a program to check if the 35


elements in the first half of a tuple are
sorted in ascending order or not.

17 Write a program to count the 37


frequency of a list of elements using a
dictionary.

18 Write a program to print the maximum, 39


minimum, sum of keys of numbers
dictionary as given below.
numbers=(1:111, 2:222,3:333,4:444}
Also individually find minimum,
maximum and sum of values.
19 Write a program and create a 41
dictionary with names of employees,
their salary and access them.

Page 3/44


f

Serial Question Page Teacher's


No. No. Signature

20 Write a program to generate 6 random 43


numbers and to then print their mean,
median and mode.

Page 4/44


f

1. Output

Input 1

Input 2

Input 3

Page 5/44


f

Ques. 1

Input two numbers and display larger/smaller number.

Page 6/44


f

2. Output

Input 1

Input 2

Page 7/44


f

Ques. 2

Input three numbers and display largest/smallest


number

Page 8/44


f

3. Output

Input 1

Input 2

Input 3

Page 9/44


f

Ques. 3

Input two numbers and display their sum.

Page 10/44


f

4. Output

Input 1

Input 2

Input 3

Page 11/44


f

Ques. 4

Input length and breath of a rectangle and display it’s


area.

Page 12/44


f

5. Output

Input 1

Input 2

Page 13/44


f

Ques. 5

To assign first five multiples of a number to five


variables and print them.

Page 14/44


f

6. Output

Page 15/44


f

Ques. 6

Write a python program to generate the given pattern


using nested loop.

Page 16/44


f

7. Output

Input 1

Input 2

Input 3

Page 17/44


f

Ques. 7

Write a python program to input an integer and check if


it’s prime or not.

Page 18/44


f

8. Output

Input 1

Input 2

Page 19/44


f

Ques. 8

Write a python program to compute the Greatest


Common Divisor and Least Common Multiple of two
integers.

Page 20/44


f

9. Output

Input 1

Input 2

Input 3

Page 21/44


f

Ques. 9
Write a python program to compute factorial of an
inputted integer.

Page 22/44


f

10. Output

Page 23/44


f

Ques. 10
Write a python program to determine whether an
inputted character is uppercase, lowercase character,
digit or any other character.

Page 24/44


f

11. OUTPUT

Input

Page 25/44


f

Ques. 11

Write a program that imputes a list, replicates it twice


and then prints the sorted list in ascending and
descending orders.

Page 26/44


f

12. OUTPUT

Input

Page 27/44


f

Ques 12
Write a program to calculate the mean of a given list of
numbers.

Page 28/44


f

13. OUTPUT

Input 1

Input 2

Page 29/44


f

Ques. 13
Write a program to search for an element in a given list
of numbers.

Page 30/44


f

14. OUTPUT

Input 1

Input 2

Page 31/44


f

Ques. 14
Write a program to count the frequency of a given
element in list of numbers.

Page 32/44


f

15. OUTPUT

Input 1

Input 2

Page 33/44


f

Ques. 15
Write a program to check if there are multiple maximum
elements in a tuple or not.

Page 34/44


f

16. OUTPUT

Input 1

Input 2

Page 35/44


f

Ques. 16
Write a program to check if the elements in the first half
of a tuple are sorted in ascending order or not.

Page 36/44


f

17. OUTPUT

Input 1

Input 2

Input 3

Page 37/44


f

Ques. 17
Write a program to count the frequency of a list of
elements using a dictionary.

Page 38/44


f

18. OUTPUT

Input

Page 39/44


f

Ques. 18
Write a program to print the maximum, minimum, sum
of keys of numbers dictionary as given below.
numbers=(1:111, 2:222,3:333,4:444}
Also individually find minimum, maximum and sum of
values.

Page 40/44


f

19. OUTPUT

Input 1

Input 2

Input 3

Page 41/44


f

Ques. 19
Write a program and create a dictionary with names of
employees, their salary and access them.

Page 42/44


f

20. OUTPUT

Input 1

Input 2

Page 43/44


f

Ques. 20
Write a program to generate 6 random numbers and to
then print their mean, median and mode.

Page 44/44

You might also like