INDEX
[Link] EXPERIMENT SIGN
Write a program in python to enter a
1 number and display its- Square Root, Hex,
Octal Equivalent.
Write a program in python to calculate
2 the area of triangle using heron’s
formula.
Write a program in python to read the
3 length and breadth of a park and
calculate its parameter.
Write a program in python that prints
4
multiplication of a given number.
Write a program in python to find the
5
largest among three numbers.
Write a program in python to find the
6
factorial of a given number.
Write a program in python to check
7
whether the given number is even or odd.
Write a program in python to generate the
8 first 10 numbers in the fibonacci
sequence.
Write a program in python to generate the
9 first n numbers in the fibonacci
sequence.
Write a program in python to print all
10
the odd numbers between 1 to 20.
Write a program in python for assigning
11 grades (A, B, C) based on marks obtained
by a student.
Write a program in python to print the
12
odd numbers in the given range.
Write a program in python that checks if
13
a given year is a leap year.
Write a program in python that calculates
14
the sum of a digits of a given number.
Write a program in python that checks if
15
the given string is a palindrome or not.
Write a program in python to generate
16
first 10 prime numbers.
Write a program in python that calculates
17 the factorial of all numbers from 1 to
10.
Write a program in python to print the
18
ASCII value of a given character.
Write a program in python that calculates
19 and prints the square root of a given
number.
Write a program in python that takes the
20 positive integer as input and print all
the divisors of that number.
Write a program in python that prints the
21 sum of the even numbers between 1 to 50
(inclusive).
Write a program in python to generate and
print the first 10 terms of the geometric
22
progression with a common ratio of 2,
starting from 1.
Write a program in python to create a
menu-based calculator. User should input
23
the numbers and ask for the operations to
be performed.
Write a program in python to print
24 shopping bill based on the user shopping
in a shopping complex.
Write a program in python to accept a
25 number and convert number into its binary
form without using any inbuilt function.
Write a program in python to reverse a
26
number
Write a program in python to print the
following patterns. The program should
ask the input n for the size of the
27
pattern, and then the pattern should be
printed accordingly as per the size
mentioned by the user.
Write a program in python to print the
following patterns. The program should
ask the input n for the size of the
28
pattern, and then the pattern should be
printed accordingly as per the size
mentioned by the user.
Write a program in python to print the
following patterns. The program should
ask the input n for the size of the
29
pattern, and then the pattern should be
printed accordingly as per the size
mentioned by the user.
Write a program in python to enter any
30 string and print the count of vowels and
consonants inside it.
Write a program in python that takes a
string and encodes it using a simple run-
31 length encoding technique. For Example:
“aaabbbbcc” should be encoded as
“3a4b2c”.
32 Write a program in python to encrypt a
message using Caesar Cipher. The user
should be able to specify the shift value
for the encryption. Ex- If input string
is “ABCD” and shift value is 2, output
string is “CDEF”.
Write a program in python that
33 capitalizes the first letter of each word
in a given sentence.
Write a program in python that counts the
34
number of words in a given string.
Write a program in python to check if a
35 given string is a palindrome, ignoring
spaces, punctuation, and letter casing.
Write a program in python to unpack a
36
tuple in several variable.
Write a program in python to convert a
37
tuple to a string.
Write a program in python to get the 4 th
38 element and 4th element from last of a
tuple.
Write a program in python to replace last
39
value of tuples in a list.
Write a program in python to count the
40 elements in a list until an element is a
tuple.
Write a program in python to calculate
41 the product, multiplying all the numbers
of a given tuple.
Write a program in python to convert a
42 tuple of string values to a tuple of
integer values.
Write a program in python to check if a
43 specified element presents in a tuple of
tuples.
Write a program in python to move all
44 zero digits to end of a given list of
numbers.
Write a program in python to find the
45 list in a list of lists whose sum of
elements is the highest.
Write a program in python to check if a
46
given value is present in a set or not.
Write a program in python to check if two
47
given sets have no elements in common.
Write a program in python to find maximum
48
and the minimum value in a set.
Write a program in python to find the
49 elements in a given set that are not in
another set.
Write a program in python to create union
50
of two sets.
Write a program in python to create an
51
intersection of two sets.
Write a program in python script to sort
52 (ascending and descending) a dictionary
by value.
Write a program in python script to add a
53
key to a dictionary.
Write a program in python script to print
a dictionary where the keys are numbers
54
between 1 and 15 (both included) and the
values are square of keys.
Write a program in python to combine two
55
dictionary adding values for common keys.
Write a program in python to create a
56
dictionary from a string.
Write a program in python to get the top
57
three items in a shop.
Write a program in python to perform read
58
and write operations on a file.
Write a program in python to copy the
59
contents of a file to another file.
Write a program in python to count
60
frequency of characters in a given file.
Write a program in python to print each
61
line of a file in reverse order.
Write a program in python to compute the
62 number of characters, words and lines in
a file.
Write a program in python that prompts
the user to enter his name. The program
then greets the person with his name. But
63
if the person’s name is ‘Rahul’ and
exception is thrown and he is asked to
quit the program.
Write a program in python that accepts
date of birth along with the other
64
personal details of a person. Throw an
exception if an invalid date is entered.
Write a program in python to represent
65
all 10 digit mobile numbers.
Write a program in python to read a file
66 and displays all of the words in it that
are misspelled.
Write a program in python to choose a
67
random element from a list.
Write a program in python to make a two-
68
player Rock-Paper-Scissors game.
Write a program in python to create
69
password generator.
70 Write a program in python to create and
use a module.