Practical file
Program 1: Write a programme to calculate any
power of any number
Output the programme is
1|Page
Write a program to calculate the factorial of
a number
Output of the code is
2|Page
Write a function to check if a number is
prime or not
Output of the code is
3|Page
Write a programme to calculate the size of a file
So, if the file is:
The output will be:
And if the file is
The output is
4|Page
Write a programme to create a simple
calculator
The output is
5|Page
String Manipulation
Output of the code is:
6|Page
List manipulations
Output of the code is:
7|Page
Dictionary example
The output of code is
8|Page
File handling
The output is:
9|Page
Exception handling example
The output will be
10 | P a g e
Write a function to make an area calculator
11 | P a g e
The output will be
12 | P a g e
13 | P a g e
14 | P a g e
To compare n number of elements to know
which is greatest
Output
15 | P a g e
CSV file handling
Output
16 | P a g e
To calculate the roots of a quadratic function
Output:
1. Two equal roots
2. Two distinct roots
17 | P a g e
3. No real roots
18 | P a g e
To calculate sum of first n terms in Fibonacci
series
Output:
19 | P a g e
Write a Science Gk quiz game
20 | P a g e
21 | P a g e
output :
22 | P a g e
23 | P a g e
Write a programme on garment shop
management
24 | P a g e
25 | P a g e
26 | P a g e
Admin panel
1. To open Admin panel
2. To open Customer panel
3. To Exit the programme
27 | P a g e
4. To Enter New Item in panel
Puma added successfully in table!
5. To change item prices
Price changed successfully
28 | P a g e
6. To View all the item in the Panel
29 | P a g e
7. Back to main menu
30 | P a g e
CUSTOMER
PANEL
To add Item in customer’s basket
31 | P a g e
HERE THE CUSTOMER CAN CHOOSE THE CLOTHES THEY WANT
32 | P a g e
IF YES IS CHOSEN IT WILL AGAIN ASK TO ADD THE DESIRED CLOTHE
WHEN NO IS CHOSEN IT WILL STOP AND FEED THE DATA IN CUSTOMERS BASKET
33 | P a g e