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

Python Programs for Class XI Practical

Uploaded by

Prerit Tomar
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)
58 views1 page

Python Programs for Class XI Practical

Uploaded by

Prerit Tomar
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

Python programs for Practical File (Class XI)

1) Write a program to calculate the area of a rectangle, taking length and breadth from the user.
2) Write a program to read name and marks of a student and display the total marks.
3) Write a program to choose variety of options from a food menu. Veg|Non-veg|Mixed.
4) Write a program to get the length of the sides of a triangle and determine whether it is equilateral
triangle, isosceles or scalene triangle.
5) Write a program to print a table, taking input from user.
6) Write a program to display even numbers and their squares between 100 to 120.
7) Write a program to read a list, display each element and its type.
8) Write a program to read a string. Split the string into list of words and display each word.
9) Write a program to check whether the user is eligible for driving license or not.
10) Write a program to prepare a simple calculator performing addition, subtraction, multiplication and
division.
11) Write a program, to display the first ten even natural numbers (Using for loop).
12) Write a program to accept the Basic salary from user and calculate Net Salary.

Net Salary= Basic Salary + HRA + DA - PF

HRA = 30 % of Basic Salary , DA= 20 % of Basic Salary , PF= 12% of Basic Salary

13) Your Father always gives his car for service after 15000 km. Check whether his car needs service of not.
Read the kilometer reading from the user and give the output.
14) Write a program where the user inputs the total restaurant bill. The program should then display two
amounts:

15% tip (if bill amount is less than Rs. 2000)


20% tip (if bill amount is more than Rs. 2000)

15) Write a simple program to display the values stored in dictionary.

You might also like