Class-10
Material/Resources Required: Laptop / PC, Practical File
Instructions: Python coding
ork Specification: Do it in a PracticalFile.
W
○ Write the input(code)
○ Paste the output
1. To calculate Area and Perimeter of a rectangle. Ask the user for the length
and width of the rectangle, then calculate and display the area and
perimeter.
2. To calculate Area of a triangle with Base and Height. Ask the user for the
base and height of the triangle, then calculate and display the area.
3. To calculate average marks of 6 subjects.Ask the user for the marks of 6
subjects, calculate the average, and display it.
4. To calculate a discounted amount. Ask the user for the price of an item and
the discount percentage, then calculate and display the discounted amount.
5. Check if the number is positive, then print an appropriate message: Ask the
user for a number and check if it's positive, zero, or negative, then print the
appropriate message.
6. A program to check if a person can vote. Ask the user for their age, then
check if they are eligible to vote (age 18 or above) and print the result.
7. To check the grade of a student.Ask the user for their marks and based on
the marks, determine and display the grade.
8. Python Program to check Leap Year. Ask the user for a year and check if it's
a leap year or not, then print the result.
9. Program to display calendar of the given month and year. Ask the user for a
year and a month, then display the calendar for that month and year.
10. To check whether the given character is an uppercase letter or lowercase
letter or a digit or a special character. Ask the user for a character, then
check its type (uppercase letter, lowercase letter, digit, or special character)
and print the result.