0% found this document useful (0 votes)
13 views25 pages

New OpenDocument Text

Uploaded by

mbansal0908
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views25 pages

New OpenDocument Text

Uploaded by

mbansal0908
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 25

INDEX

Sno Practical Topic Page no.

1 Program to obtain length and breadth of a


rectangle and calculate its area.
2 Write a program to input a number and
print its cube.
3 Write a program to input two numbers and
swap them,.
4 Write a program to enter two integers and
perform all arithmetic operations on them
5 The radius of a sphere is 7.5 metres, write a
python script to calculate its area and
volume.
6 Write a program to calculate simple
interest.
7 Write a program to accept a percentage of a
student and display its grade accordingly.
8 Write a program to print fibonacci series.
9 Write a program to display prime numbers
up to a certain limit
10 Write a program to accept a number and
find out whether it is a perfect number or
not.
11 Write a program to accept a number ,find
and display whether it is a Armstrong
number or not.
12 Write a program that count the number of
alphabets ,digit ,uppercase ,lowercase
letters ,spaces and symbols in a string
entered.
13 Write a program to create a dictionary with
roll number ,name and marks of a student
in a class and display the names of students
who have scored more than 75.
14 Write a program to input a list of numbers
at the even location with elements at the
odd location.
15 Write a program to print the following
pattern.
16 Write a program that inputs individual
words ofyour school motto andjoin them to
make a string
17 Write the program to find the largest and
second largest number of the string.
18 Write a program to read the list of n
integers.Create two new lists,one having all
positive numbers and other having all
negative numbers from the given list.Print
all threee lists
19 Write a program to input a tuple and create
two new tuples from it , one containing its
every 3rd element in reverse order ,starting
from the last element and other containing
every alternate element lying between 3rd
and 9th elements.
20 Program to find that the input is a leap year
or not.
QUESTION 1
Program to obtain length and breadth of a rectangle and calculate its
area.

INPUT – PYTHON SCRIPT

OUTPUT
QUESTION 2
Write a program to input a number and print its cube

INPUT – PYTHON SCRIPT

OUTPUT
QUESTION 3
Write a program to input two numbers and swap them,.

INPUT – PYTHON SCRIPT

OUTPUT
QUESTION 4
Write a program to enter two integers and perform all arithmetic
operations on them

INPUT – PYTHON SCRIPT

OUTPUT
QUESTION 5
The radius of a sphere is 7.5 metres, write a python script to
calculate its area and volume.

INPUT – PYTHON SCRIPT

OUTPUT
QUESTION 6
Write a program to calculate simple interest.

INPUT – PYTHIN SCRIPT

OUTPUT
QUESTION 7
Write a program to accept a percentage of a student and display its
grade accordingly.

INPUT – PYTHON SCRIPT

OUTPUT
QUESTION 8
Write a program to print fibonacci series.

INPUT – PYTHON SCRIPT

OUTPUT
QUESTION 9
Write a program to display prime numbers up to a certain limit

INPUT- PYTHON SCRIPT

OUTPUT
QUESTION 10
Write a program to accept a number and find out whether it is a
perfect number or not.

INPUT – PYTHON SCRIPT

OUTPUT
QUESTION 11
Write a program to accept a number ,find and display whether it is a
Armstrong number or not.

INPUT – PYTHON SCRIPT

OUTPUT
QUESTION 12
Write a program that count the number of alphabets ,digit ,uppercase
,lowercase letters ,spaces and symbols in a string entered.

INPUT -PYTHON SCRIPT


OUTPUT
QUESTION 13
Write a program to create a dictionary with roll number ,name and
marks of a student in a class and display the names of students who
have scored more than 75.

INPUT – PYTHON SCRIPT


OUTPUT
QUESTION 14
Write a program to input a list of numbers at the even location with
elements at the odd location

INPUT – PYTHON SCRIPT

OUTPUT
QUESTION 15
Write a program to print the following pattern.
A
AB
ABC
ABCD
ABCDE

INPUT – PYTHON SCRIPT

OUTPUT
QUESTION 16
Write a program that inputs individual words ofyour school motto
andjoin them to make a string

INPUT – PYTHON STRING


OUTPUT
QUESTION 17
Write the program to find the largest and second largest number of
the string.

INPUT- PYTHON SCRIPT

OUTPUT
QUESTION 18
Write a program to read the list of n integers.Create two new
lists,one having all positive numbers and other having all negative
numbers from the given list.Print all threee lists

INPUT – PYTHON SCRIPT

OUTPUT
QUESTION 19
Write a program to input a tuple and create two new tuples from it ,
one containing its every 3rd element in reverse order ,starting from
the last element and other containing every alternate element lying
between 3rd and 9th elements.

INPUT- PYTHON SCRIPT

OUTPUT
QUESTION 20
Program to find that the input is a leap year or not.

INPUT – PYTHON SCRIPT

OUTPUT

You might also like