RahulPythonPractical-2
RahulPythonPractical-2
PROGRAMMING
Using python
PRACTICALS
SUBMITTED TO - Prof.Dr.Arpita Sharma
SUBMITTED BY:-
NAME=RAHUL KUMAR
ROLL NO=24HCS4165
COURSE=BSC (H) COMPUTER SCIENCE
COLLEGE:-DEEN DAYAL UPADHYAY COLLEGE
Practical1. WAP to find roots of
quadratic equation
Output
Practical.2 WAP to accept a number
“n” and analyze for prime numbers.
Output:
Practical.3 WAP to create a pyramid of
character “*” and reverse pyramid.
Output:
Practical.4 WAP to accept a character
and analyze character.
Output:
Practical.5 WAP to perform operations
on a string.
Output:
Practical.6 WAP to swap the first n
characters of two strings.
Output:
Output:
Practical.9
Practical.10 WAP to create class point
with x and y as attributes and define a
method to find distance between two
points.
output:
Practical.11 WAP to print a dictionary
where the keys are numbers between 1
and 5 and the values are cubes of the
keys.
Output:
Practical.12 WAP to perform folloeing
operations .
T1=(1,2,5,7,9,2,4,6,8,10)
Output:
Output: