0% found this document useful (0 votes)
14 views6 pages

Python Files

The document is a practical file containing a list of 12 Python programs, each with a specific task such as calculating sums, areas, and averages. Each program includes input and output screenshots demonstrating their functionality. The programs cover basic programming concepts and operations suitable for beginners.

Uploaded by

aayana.saini2011
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)
14 views6 pages

Python Files

The document is a practical file containing a list of 12 Python programs, each with a specific task such as calculating sums, areas, and averages. Each program includes input and output screenshots demonstrating their functionality. The programs cover basic programming concepts and operations suitable for beginners.

Uploaded by

aayana.saini2011
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

PYTHON PRACTICAL FILE

Index

[Link] Program Name Page No


1 Sum of two numbers (15 and 1
20)
2 Table of 5 up to 5 terms 2
3 Simple interest calculation 3
(P=2000, R=4.5, T=10)
4 Area and perimeter of 4
rectangle
5 Area of triangle (base & 5
height)
6 Average marks of three 6
subjects
7 Discounted amount 7
calculation
8 Surface area and volume of 8
cuboid
9 List operations on quiz 9
participants
10 List of Rirst 10 even numbers 10
+1
11 Check if a person can vote 11
12 Check grade of a student 12
Program 1: Sum of two numbers (15 and 20)
Input (Code in IDLE):

Figure 1: Input Screenshot

Output (Result in IDLE):

Figure 1.1: Output Screenshot

Program 2: Table of 5 up to 5 terms

Input (Code in IDLE):

Figure 2: Input Screenshot

Output (Result in IDLE):

Figure 2.1: Output Screenshot


Program 3: Simple interest calcula@on (P=2000, R=4.5, T=10)
Input (Code in IDLE):

Figure 3: Input Screenshot

Output (Result in IDLE):

Figure 3.1: Output Screenshot

Program 4: Area and perimeter of rectangle

Input (Code in IDLE):

Figure 4: Input Screenshot

Output (Result in IDLE):

Figure 4.1: Output Screenshot

Program 5: Area of triangle (base & height)


Input (Code in IDLE):
Figure 5: Input Screenshot

Output (Result in IDLE):

Figure 5.1: Output Screenshot

Program 6: Average marks of three subjects


Input (Code in IDLE):

Figure 6: Input Screenshot

Output (Result in IDLE):

Figure 6.1: Output Screenshot

Program 7: Discounted amount calcula@on


Input (Code in IDLE):

Figure 7: Input Screenshot

Output (Result in IDLE):

Figure 7.1: Output Screenshot


Program 8: Surface area and volume of cuboid
Input (Code in IDLE):

Figure 8: Input Screenshot

Output (Result in IDLE):

Figure 8.1: Output Screenshot

Program 9: List opera@ons on quiz par@cipants


Input (Code in IDLE):

Figure 9: Input Screenshot

Output (Result in IDLE):

Figure 9.1: Output Screenshot

Program 10: List of first 10 even numbers +1


Input (Code in IDLE):

Figure 10: Input Screenshot

Output (Result in IDLE):


Figure 10.1: Output Screenshot

Program 11: Check if a person can vote


Input (Code in IDLE):

Figure 11: Input Screenshot

Output (Result in IDLE):

Figure 11.1: Output Screenshot

Program 12: Check grade of a student


Input (Code in IDLE):

Figure 12: Input Screenshot

Output (Result in IDLE):

Figure 12.1: Output Screenshot

You might also like