Py 2
Py 2
PRACTICAL FILE
(KCS-453)
BACHELOR OF TECHNOLOGY
In
COMPUTER SCIENCE AND ENGINEERING
Session: 2022-23
PROGRAM 2
Python Program to Add Two Numbers.
PROGRAM 3
Python Program to Find the Square Root.
num = int(input("Enter a number: "))
sqrt = num ** 0.5
print("The square root of", num, "is:", sqrt)
PROGRAM 4
Python Program to Calculate the Area of a Triangle.
PROGRAM 6
Python Program to Swap Two Variables
PROGRAM 8
Python Program to Convert Celsius To Fahrenheit ( F=9*C/5+32)
PROGRAM 9
Python program to convert height (in feet and inches) to centimetres.
(1 feet= 12 inches, 1 inch=2.54 cm) and (cms=feet*12*2.54+inches*2.54)
PROGRAM 10
Python program to calculate the hypotenuse of a right-angled triangle.
(h=(b*b +h*h)**0.5)
PROGRAM 12
Python program to display your details like name, age, address in
three different lines.
PROGRAM 15
Write a program to find greatest no. two no.
PROGRAM 16
Write a program to check if the given no. is odd or even
PROGRAM 18
Write a program to find greatest of 3 no. using else if ladder
PROGRAM 20
Write a program to check whether an alphabet entered by user is vowel
or consonant.