0% found this document useful (0 votes)
9 views1 page

Python Lab Exercises for Students

The document outlines 6 Python programming exercises: 1) calculating average marks across 6 subjects, 2) calculating the area of rectangles and squares, 3) determining medical or engineering eligibility based on average scores in 3 subjects, 4) finding the largest of 3 numbers, 5) allotting an engineering branch based on entrance exam score ranges, and 6) segregating students into performance categories based on their CGPA ranges.

Uploaded by

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

Python Lab Exercises for Students

The document outlines 6 Python programming exercises: 1) calculating average marks across 6 subjects, 2) calculating the area of rectangles and squares, 3) determining medical or engineering eligibility based on average scores in 3 subjects, 4) finding the largest of 3 numbers, 5) allotting an engineering branch based on entrance exam score ranges, and 6) segregating students into performance categories based on their CGPA ranges.

Uploaded by

LEKHAN CHIRIKI
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

UCSC101P – Python Programming Lab Exercises

1. Write a python program to find the average marks scored by a student in 6 subjects.

2. Write a python program to find the area of a rectangle and square.

3. Write a program to find the average score of a student in physics, chemistry and
mathematics which help them to qualify for a medical education or engineering
education. If the average score is greater than or equal to 98, the candidate is eligible
for medical admission else engineering admission.

4. Write a python program to find the biggest among three given number.

5. Write a program to allot the branch based on the entrance exam marks scored by the
student:
1. If mark>=90 Computer Science
2. <=80 mark <90 Mechanical
3. <=70 mark <80 Civil
4. Else eligible for other engineering branches

6. Write a python program to segregate student based on their CGPA. The details are as
follows:

<=9 CGPA <=10 - outstanding


<=8 CGPA <9 - excellent
<=7 CGPA <8 - good
<=6 CGPA <7 - average
<=5 CGPA <6 - better
CGPA<5 - poor

You might also like