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

Class 10 HHW

Uploaded by

Aadya Ji
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)
33 views1 page

Class 10 HHW

Uploaded by

Aadya Ji
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/ 1

‭Class-10‬

‭Material/Resources Required‬‭: Laptop / PC, Practical File‬

‭Instructions‬‭: Python coding‬

‭ ork Specification: Do it in a Practical‬‭File.‬


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.‬

You might also like