You are on page 1of 1

CLASS – XI

SUBJECT – COMPUTER SCIENCE (083)


SESSION – 2023 – 2024
PYTHON SCRIPTING (For Practical File)

Question Code Topic/Question

String – 1 Write a python script to input a string and count the number of occurrences of the
following:
i. lowercase alphabets
ii. uppercase alphabets
iii. digits
iv. spaces
v. vowels
vi. consonants
vii. special characters

String – 2 Write a python script to input two strings and perform the following tasks :
i. display greater and smaller string along with their length
ii. check the strings are identical or not
iii. reverse the two strings and then join them to form a third string
iv. check the presence of first 3 characters of second string in the first string

List Write a python script to store M integer values in list A in ascending order, N integer
values in list B in descending order and merge these M+N elements in list C in
ascending order.

Tuple Write a python script to read email IDs of n number of students and store them in a
tuple. Create two new tuples, one to store the usernames from the email IDs and
second to store the domain names from the email IDs. Print all three tuples at the end
of the program.

Dictionary Write a python script to create a dictionary with the roll number, name and marks of
n students in a class and display the names of the students who have got 75 or more.
Also display the number of students who have got 75 or more marks.

You might also like