0% found this document useful (0 votes)
13 views2 pages

List of Programs For The Practical File-25

Uploaded by

tanmayrakheja43
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)
13 views2 pages

List of Programs For The Practical File-25

Uploaded by

tanmayrakheja43
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/ 2

List of Programs for the Practical File

Class:XI (Computer Science)


1. Write Python script to input the values of Principal, Rate, and Time and calculate Simple
Interest and Compound Interest. The script should also display the values of simple interest
and compound interest.
2. Write Python script to enter temperature in degree Celsius and display it into Fahrenheit.
3. Write a program to take seconds as input. Convert seconds into minutes and seconds and print.
4. Write a program that accepts marks in 5 subjects and prints the percentage and average.
5. Write a program to accept height in centimeters and then convert it into feet and inches
(1 inch=2.54cm, 1 feet=12 inches)
6. Write a script to input a number and check whether it is even or odd, and then display an
appropriate message.
7. Write a script to input a number. If the number is even, print its square, otherwise print its cube.
8. WAP to find greatest among three numbers.
9. WAP to print counting up to n.
10. WAP to print even numbers up to n.
11. WAP to print Fibonacci series.
12. WAP to calculate n!.
13. Write a program to print the

pattern: 1

12
123
14. Write a program to print the

pattern: 1

22
333
15. Write a program to print the pattern:
**
**
**
16. Write A program to find sum of
series: 1+x+x2+x3……xn
17. Write a program to print the sum of the

series: S=1/2!+1/3!/1/4!. 1/N!

18. .................................... Write a program

to print the sum of the series: S=X+X2/2!-

X3/3!+X4/4!. ...................... XN/N!

19. Write a program in python that reads a string and checks whether it is a palindrome or not.
20. Write program in python to input 10 strings and convert all lowercase strings to upper case and
vice versa.
21. Write a program that takes a string with multiple words and then capitalizes the first letter
of each word and form a new string out of it.
22. Write short python script that traverses through an input string and prints its characters in
different lines.
23. Write a program to input a list of numbers and swap elements at the even location with the
elements at the odd location.
24. Write a program to calculate and display the sum of all the odd numbers in the list.
25. Write a program to input a list and an element. Allow the user to remove all occurrences
of the given element from the list.
26. Write a program to make a list containing 5 numbers, print them and multiply each
number by 5.
27. Write a program to input 10 numbers in a string and calculate their sum and average.
28. Write a program to make a list of 5 numbers and search for a number specified by the user in
the list. If it is found, print its index.
29. Write a program to reverse elements in a list where arguments are start and end index of the list
part which is to be reversed. Assume that start<end, start>=0 and end<len(list)
Sample Input Data of List :
my_list=[1,2,3,4,5,6,7,8,9,10]
Output is my_list=[1,2,3,7,6,5,4,8,9,10]
30. Write a program to enter a festival name and search whether the name present in the tuple or not
without using membership operator. Print appropriate message.
31. Write a program to print the following tuple elements using for loop:
WeekDays = ('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday')
32. Write a program to create a nested tuple store roll number, name and marks in 5 subjects of a
student and print them.
33. Write a program to input two tuples and create a third tuple that contains all the elements of first
tuple followed by all the elements of second tuple.
34. Write a program to create dictionary of a number and its square upto N.
35. Write a program to enter names of employees and their salaries as input and store them in a
dictionary and print them.

You might also like