[go: up one dir, main page]

0% found this document useful (0 votes)
2 views5 pages

CS Practical

The document contains a series of programming exercises for Class XI Computer Science students, focusing on string manipulation, list operations, and dictionary handling in Python. Each exercise specifies a task, such as checking for palindromes, reversing words, or removing duplicates. The practical file serves as a guide for students to practice and enhance their programming skills.

Uploaded by

Kanishth
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)
2 views5 pages

CS Practical

The document contains a series of programming exercises for Class XI Computer Science students, focusing on string manipulation, list operations, and dictionary handling in Python. Each exercise specifies a task, such as checking for palindromes, reversing words, or removing duplicates. The practical file serves as a guide for students to practice and enhance their programming skills.

Uploaded by

Kanishth
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/ 5

CLASS: XI

SUBJECT: COMPUTER SCIENCE


PRACTICAL FILE

QUESTION INPUT OUTPUT


WAP to program to
check whether the
string is Palindrome
or not.

WAP to reverse words


in a given String in
Python without using
function.

WAP to remove i’th


character from string
in Python

WAP to find length of


a string in python
without using any
function.

WAP to print even


length words in a
string

WAP to convert in
Uppercase Half String
QUESTION INPUT OUTPUT
WAP to capitalize
the first and last
character of each
word in a string

WAP to check if a
string has at least
one letter and one
number

WAP to check the


strings which
contains vowels and
print the missing
vowels

WAP to remove all


duplicates character
from a given string

WAP to arrange the


elements of a list in
decreasing order of
their value.

WAP to read a
number from the
keyboard and check
whether the entered
number is present or
not in the list.

WAP to find out the


average of n
elements in list.

WAP to find out the


total number of
even elements in
the list.
QUESTION INPUT OUTPUT
WAP to find the
largest even no
From list, if there is no
even no. then input
“Even not found in the
list”.

WAP to find the sum of


even indexed elements
from the list.

WAP to create a list with


some duplicate values
and remove all the
duplicates from the list.

WAP to print a specified


list after removing the
0th, 3rd and 5th
elements

WAP to iterate over


dictionaries using for
loops

WAP to generate and


print a dictionary that
contains a number
(between 1 and n) in the
form (x, x*x).

WAP print a dictionary


where the keys are
numbers between 1 and
15 (both included) and
the values are the
square of the keys
WAP to merge two
Python dictionaries.
INPUT OUTPUT
QUESTION
WAP to multiply
all the items in a
dictionary.

WAP to map two


lists into a
dictionary.

WAP to sort a
given dictionary
by key.

WAP to get the


maximum and
minimum values
of a dictionary.

WAP to remove
duplicates from
the dictionary

WAP to combine
two dictionaries
by adding values
for common keys.

Write a Python
program to find
the highest 3
values of
corresponding
keys in a
dictionary.
Write a Python
program to
combine values in
a list of
dictionaries.

You might also like