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

Practical List Class XI

Half yearly

Uploaded by

poojakushwah4884
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)
27 views

Practical List Class XI

Half yearly

Uploaded by

poojakushwah4884
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

PRACTICAL LIST CLASS XI

1. Input a welcome message and display it.


2. Write a program to implement a simple calculator for two input numbers. Offer
choice through a menu.
3. Write a program to swap two numbers using third variables.
4. Write a program to print Fibonacci series.
5. Write a program to check if the year entered by the user is a leap year or not.
6. Write a function that checks whether an input number is a palindrome or not.
7. Write a program to print the following patterns:
a. * b. 1
*** 212
***** 32123
*** 4321234
* 543212345
8. Write a program that reads a line and prints its statistics like:
Number of uppercase letters: Number of lowercase letters:
Number of alphabets: Number of digits:
Number of symbol:
9.Write a program that reads a line and a substring. It should then display the number of
occurrences of the given substring in the line.
10.Write a program that reads a string and checks whether it is a palindrome string or not
without using string slices.
11.Write a program to input a list of numbers and swap elements at the even location
with the elements at the odd location.
12.Read a list of n elements. Pass that list to a function which reverse this list in place
without creating a new list.
13.Write a program to create and traverse a 2-D list.
14.Writa a program that ask the user to input a number a list to be appended to an
existing list. Whether the user enters a single number or a list of numbers, the program
should append accordingly.
15.Write a program to find the sum of digits of an integer number, input by the user.
16.Program to input some numbers repeatedly and print their sum. The program ends
when user say no to enter (normal termination) or program aborts when the number
entered is less than zero.
17. write a program that display options for inserting or deleting elements on a list. If the
user chooses a deletion option, display a submenu and ask if element is to be deleted with
value or by using its position or a list slice is to be deleted.
18. Program to find frequencies of all the elements of a list. Also, print the list of unique
elements in the list and duplicate elements in the given list.
19.Write a program to create and traverse a 2D list .
20.Writa a program that inputs a lists, replicate it twice and then prints the sorted list in
ascending and descending orders.

You might also like