[go: up one dir, main page]

0% found this document useful (0 votes)
5 views1 page

Class XI IPR PracticalQuestions

Uploaded by

hianusmitaa01
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)
5 views1 page

Class XI IPR PracticalQuestions

Uploaded by

hianusmitaa01
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/ 1

AGPN CONVENT AND E.R.

SCHOOL

CLASS XI PRACTICAL

SUB: INFORMATICS PRACTICES

SESSION: 2024-25

Python Functions

1. Write a Python function that takes a list of numbers as input and returns the sum of all the
numbers in the list.
2. Create a function that takes two arguments, a string, and a character, and returns the number
of times the character appears in the string.
3. Write a function that takes a list of integers and returns the largest number in the list.
4. Develop a function that accepts a list of strings and returns a new list with each string
reversed.
5. Write a function that calculates the area of a circle given the radius.

Lists and List Methods

6. Given a list of integers, write a Python script to remove all the even numbers from the list.
7. Write a program that merges two lists and sorts the merged list in ascending order.
8. Create a list of 10 random integers. Write a program to find the index of the first occurrence
of the maximum value in the list.
9. Write a Python program that appends the squares of numbers from 1 to 10 to an empty list.
10. Given a list of names, write a Python program to count how many names start with the letter
'A'.

Dictionaries and Dictionary Methods

11. Write a Python program to count the frequency of each word in a given sentence using a
dictionary.
12. Create a dictionary where keys are the names of students and values are their marks. Write a
program to find the student with the highest marks.
13. Write a Python script to merge two dictionaries and print the resulting dictionary.
14. Given a dictionary with student names as keys and their ages as values, write a program to
print all the students who are older than 18.
15. Write a Python program that takes a dictionary as input and returns a new dictionary with
keys and values swapped.

You might also like