SET A:
1 Write a program to print the sum of two numbers. Take numbers from user.
2 Write a program to find the area of a triangle.
3 Write a program to calculate the area of a circle.
4 Write a program to find simple interest.
5 Write a program to calculate the volume of the cone /sphere/ cylinder.
6 Write a program to square and cube the entered number.
7 Write a program to print an average of three numbers.
8 Write a program to check whether a number is even or odd.
9 Write a program to check whether a number is divisible to 5 or not.
10 Write a program to find the largest of two numbers.
11 Write a program to find the largest of three numbers using nested if or ladder if
else.
12 Write a program to print types of triangle (takes sides from the user).
13 Write a program to check whether a candidate is eligible for voting or not.
14 Write a program to check whether a candidate is eligible for senior citizenship
benefits or not.
15 Write a program to print numbers from 1 to 10 using a while loop.
16 Write a program to print numbers from 1 to 10 using a for loop.
17 Write a program to print the sum of first N numbers.
18 Write a program to print the reverse of a number.
SET B:
1 Write a program to print the factorial of a number.
2 Write a program to check whether the given number is a prime number or not.
3 Write a program to print whether a number is a palindrome number or not.
4 Write a Python program to create a list of numbers entered by the user. Perform the
following operations:
● Display the list
● Find the sum and average of elements
● Display the largest and smallest number
5 Write a Python program to demonstrate list:
● Accept a list of numbers
● Sort the list in ascending order
● Search for a given element and display whether it is present or not
6 Write a Python program to demonstrate list:
● Create a list of numbers
● Replace the first element with a given value
● Delete the last element
● Display the updated list
7 Write a Python program to create a tuple of numbers and perform the following:
● Display the tuple
● Find the length of the tuple
● Display the first and last element
● Find the maximum and minimum values
8 Write a program to demonstrate use of sets in python.
a. Accept two strings from the user
[Link] Common Letters in Two Input Strings (Intersection)
c. Displays Letters which are in the First String but not in the Second(Difference)
9 Write a program to demonstrate use of sets in python.
a. Accept two strings from the user
b. Displays set of all Letters of Both the Strings (Union)
c. Displays Letters which are in the Two Strings but not in Both (Symmetric
Difference)
10 Write a Python program to demonstrate dictionary:
● Create a dictionary of items and their prices
● Add a new item and price pair to the dictionary
● Find the key and print its value.
11 Write a python program to demonstrate single inheritance in python.
12 Write a python program to demonstrate multilevel inheritance in Python.
13 Write a python program to read from a file.
14 Write a python program to write into file.
Rubrics …………………………………………………….( Total Marks: 25)
1. One Program from SET A ( 5 Marks)
2. One Program from SET B ( 10 Marks)
3. Viva / Oral Exam ( 10 Marks)