0% found this document useful (0 votes)
231 views

Class Xi-Ip Practical List Python

This document contains a practical list of 20 Python programming exercises for students. The exercises include programs to check if a number is even or odd, calculate simple and compound interest, find the largest number in a list, calculate library late fees and electric bills, calculate factorials and Fibonacci sequences, check for palindromes, convert numbers to words, draw right triangles with asterisks, find minimum and maximum values in lists, add corresponding elements of two lists, find the intersection of two lists, create a dictionary with months and days, and calculate a student's average marks from a dictionary of subject scores.
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)
231 views

Class Xi-Ip Practical List Python

This document contains a practical list of 20 Python programming exercises for students. The exercises include programs to check if a number is even or odd, calculate simple and compound interest, find the largest number in a list, calculate library late fees and electric bills, calculate factorials and Fibonacci sequences, check for palindromes, convert numbers to words, draw right triangles with asterisks, find minimum and maximum values in lists, add corresponding elements of two lists, find the intersection of two lists, create a dictionary with months and days, and calculate a student's average marks from a dictionary of subject scores.
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
You are on page 1/ 2

CLASS XI-IP

Practical List
Python
1. Write a python program to find no is even or odd
2. Write a python program to check whether a number is divisible by 5 and 11 or not
3. To calculate interest (Simple and Compound) when principal, rate and time are given
T
[S.I. = (PRT)/100, C.I. = P(1+R/100) -P]
4. Write a python program to find largest integer among given three integers
5. Write a python program to for library charges a fine for books returned late.
Following are the fines:
First five days: 40 paisa per day.
Six to ten day: 65 paisa per day.
Above ten days: 80 paisa per day
6. Write a python program to for Electric Bill charges according to charges. Following
are the fines :
First 100 Units: 1 Rs per day.
Next200 Units: 2 Rs per day.
Above300 Units: 4 Rs per day.
7. To find the sum of squares of the first 100 natural numbers.
8. Write a python program to find the sum of all even numbers from 0 to 10
9. Write a python program to print the factorial of a given number
10.Write a python program to print the first 10 numbers Fibonacci series
11.Write a python program to check whether a given number is palindrome or not
12.Write a python program to convert a 4 digit number into words
Eg. 2347 --> Two Thousand Three hundred and forty seven
13.Write a python program to read a number and print a right triangle using "*"
Eg :
Input: 5
Output
*
**
***
****
*****
14.To find the largest and smallest numbers in a list.
15.To find the third largest number in a list.
16.Write a python program to find sum of largest two numbers in the given list
17.Write a python program that takes any two lists L and M of the same size and adds
their corresponding elements in a new list N.
Eg. L=[3,1,4] and M=[1,5,9] then N should be [4,6,13]
18.Write a python program to make a list whose elements are intersection of the given
two lists.
Eg. L = [2,4,6,8,5] and M = [4,1,9,8,5,10] then N should be [4,8,5]

19.Write a program to create a dictionary whose keys are months and whose values are
number of days in the corresponding months. Then ask user to enter a month name
and use this dictionary to tell how many days are in the month.
20.Write a program to create a dictionary which contains marks of a student in 5
different subjects (PHY,CHEM,MATH,ENG,IP) with subject name as key and values as
marks. Now fetch all marks from dictionary and calculate average marks obtained by
the student.

You might also like