You are on page 1of 2

List of Practical for Class 11- Computer Science

Min: 20 Python Practicals

S. No Topic Sub Topic Practical

1.
Input and Print and input Input a welcome message and display it.
Output statement
2.
Conditional
If statement Input two numbers and display the larger & smaller number.
Statement
3.
Conditional
If-elif statement Input three numbers and display the largest & smallest number.
Statement
Generate the following patterns using nested loop.
Pattern-1
*
Iterative For loop –
4. statement Single/Nested **
***
****
*****
Generate the following patterns using nested loop.
Pattern-2
1 2 3 4 5
Iterative For loop -
5. statement Single/Nested 1 2 3 4
1 2 3
1 2
1
Generate the following patterns using nested loop.
Pattern-3
6.
Iterative For loop A
statement Single/Nested AB
ABC
ABCD
Generate the following patterns using nested loop.
Pattern-4
7.
Iterative For loop 1 1
statement Single/Nested 12 21
123 321
12344321
Iterative Write a program to input the value of x and n and print the sum of the following series:
8. statement
For loop
𝑆𝑒𝑟𝑖𝑒𝑠 = 1 + 𝑥 + 𝑥 + 𝑥 + 𝑥 + 𝑥 + ⋯ + 𝑥
Iterative Write a program to input the value of x and n and print the sum of the following series:
9. statement
For loop
𝑆𝑒𝑟𝑖𝑒𝑠 = 1 − 𝑥 + 𝑥 − 𝑥 + 𝑥 − 𝑥 + ⋯ + 𝑥
Write a program to input the value of x and n and print the sum of the following series:
Iterative 𝑥 𝑥 𝑥 𝑥 𝑥
10. statement
For loop
𝑆𝑒𝑟𝑖𝑒𝑠 = 1 + 𝑥 + + + + +⋯ +
2 3 4 5 𝑛
Write a program to input the value of x and n and print the sum of the following series:
11.
Iterative
For loop
𝑥 𝑥 𝑥 𝑥 𝑥
statement 𝑆𝑒𝑟𝑖𝑒𝑠 = 1 + 𝑥 + + + + +⋯ +
2! 3! 4! 5! 𝑛!

12.
Iterative Determine whether a number is a perfect number or not.
statement
13.
Iterative Determine whether a number is a an Armstrong number or not.
statement
14.
Iterative Determine whether a number is a palindrome or not.
statement
15.
Iterative Input a number and check if the number is a prime or composite number.
statement
16.
Iterative
For loop Display the terms of a Fibonacci series.
statement
17.
Iterative
While loop Display the Fibonacci series such that their sum is less than 200
statement
18.
Iterative
While loop Display the first even numbers such that their sum is less than 100
statement
19.
Iterative Compute the greatest common divisor and least common multiple of two integers.
statement
Count and display the number of vowels, consonants, uppercase, lowercase characters in
20. String methods
string.
String Input a string and determine whether it is a palindrome or not; convert the case of
21. Handling
characters in a string.
22. List Built-in-Function Find the largest & smallest number in a list.
List Input a list of numbers and swap elements at the even location with the elements at the
23. Handling
odd location.
24. List Searching Input a list of elements, search for a given element in the list.
Input a list of numbers and test if a number is equal to the sum of the cubes of its digits.
25. List Handing
Find the smallest and largest such number from the given list of numbers.
26. Tuple Handling Find the largest & smallest number in a tuple
Input a tuple of numbers and swap elements at the even location with the elements at
27. Tuple Built-in-Function
the even location.
28. Tuple Handling Input a tuple of elements, search for a given element in the tuple.
Input a tuple of numbers and test if a number is equal to the sum of the cubes of its
29. Tuple Searching
digits. Find the smallest and largest such number from the given list of numbers.
Creation & Create a dictionary with the roll number, name and marks of n students in a class and
30. Dictionary
Access display the names of students who have marks above 75
You have been given a dictionary with the roll number, name and marks of 10 students
31. Dictionary Deletion in a class and display the Name and Roll No of students. Delete the concerned entry of
student from dictionary
You have been given a dictionary with the roll number, name and marks of n students in
32. Dictionary Update a class and display the names of students. Read the Roll no of students whose marks are
to corrected. Correct it in dictionary and display the fully updated dictionary.
Use math module to compute and display the following result
(a) Read and Angle and display all trigonometric functions
(b) Read two numbers x and n. display square root of x.
33. Modules Maths (c) Read two numbers x and n. display xn.
(d) Display value of pi. Read radius of a circle and calculate its area using pi.
(e) Read a float display its ceiling and floor values.
(f) Read a number x and display ex.
Use random module to display following:
(a) Display 10 random numbers less than 1.
(b) Read two number from user. Generate & display random numbers between
34. Modules Random the two numbers.
(c) Read two numbers from user. Generate & display 10 random numbers
between the two numbers such that it only generates numbers which are
divisible by 3.
35. Modules Statistic Read the age of 10 students of your class and calculate its mean, mode and median.
Generate sample of 10 random number between 25 and 35 including 25 and 35, and
36. Modules Random, Statistic
calculate its mean, mode and median.

Cyber Security

Cyber Take a sample of ten phishing e-mails (or any text file) and find most commonly occurring
1. Cyber-crime
Security word(s).
2.
Cyber
Digital Foot Print Check how many cookies are stored in your PC and collect 10 samples of cookies.
Security
Cyber List at least 10 python code editing software and find out the type of licence is required
3. Security Data protection
for using them.
Cyber List the rules that you will follow while creating password for your new gmail account.
4. Security Data protection
Now write down 10 possible passwords following the rules.

You might also like