S.no.
Title Teacher’s
sign
1. Write a program that inputs a student’s marks in
three subjects (out of 100) and prints the
percentage marks
2. Write a program that accepts weight in Kg and
height in meters and calculates the BMI.
3. Write a program that reads the number n and
prints the value of n2, n3, n4.
4. Write a program to obtain x, y, z and calculate
4x4 + 3y3 + 9z + 6
5. Write a Program to enter a number and check if it
is a prime number or not.
6. Write a program to accept the radius and height
from the user and calculate the Volume of a cone.
7. Write a program to print the sum of n natural
numbers.
8. Write a python program to print factorial of a
number.
9. Write a python program to print Fibonacci series
of the first 20 elements.
10. Write a program to print the sum of the series:
S = 1 + x + x 2 + x 3 + x 4 +-----------+ x n.
11. Write a program that reads a line and prints its
number of characters.
12. Write a program that reads a string and checks
whether it is a palindrome or not.
13. Write a program that input three numbers from
the user and displays the largest number.
14. Write a Python Program to count number of times
a character occurs in the given string
15. Write a program that asks the user for a string s
and character c and then prints the character c's
location in the string s.
16. Write a program to input a list and an element,
and remove all occurrences of the given element
from the list.
17. Write a program to input two lists and display the
maximum element from the elements of both the
list combined, along with the index in its list.
18. Write a program to input the names of n students
and store them in a tuple. Also, input a name from
the user and find if this student is present in the
tuple or not.
19. Write a program to check if a tuple contains any
duplicate elements.
20. Write a program that takes a value and checks
whether the given value is part of given dictionary
or not. If it is, it should print the corresponding
key otherwise print an error message.
Question 1-
PROGRAM
OUTPUT
Question 2-
PROGRAM
OUTPUT
Question 3-
PROGRAM
OUTPUT
Question 4-
PROGRAM
OUTPUT
Question 5-
PROGRAM
OUTPUT
Question 6-
PROGRAM
OUTPUT
Question 7-
PROGRAM
OUTPUT
Question 8-
PROGRAM
OUTPUT
Question 9-
PROGRAM
OUTPUT
Question 10-
PROGRAM
OUTPUT
Question 11-
PROGRAM
OUTPUT
Question 12-
PROGRAM
OUTPUT
Question 13-
PROGRAM
OUTPUT
Question 14-
PROGRAM
OUTPUT
Question 15-
PROGRAM
OUTPUT
Question 16-
PROGRAM
OUTPUT
Question 17-
PROGRAM
OUTPUT
Question 18-
PROGRAM
OUTPUT
Question 19-
PROGRAM
OUTPUT
Question 20-
PROGRAM
OUTPUT