Praveen Python 1.1
Praveen Python 1.1
WORKSHEET 1.1
1. Aim:
Write a program to enter two numbers and perform all arithmetic operations.
Write a program to enter marks of five subjects and calculate total, average and
percentage.
Write a program to enter length in centimeter and convert it into meter and kilometer,
and also convert the same into Equivalents
2. Source Code:
py = int(input("python : "))
avg = total/5
num_m = num_cm/100
print(num_cm,"cm = ",num_m,"m")
print(num_cm,"cm = ",num_km,"km")
3. Screenshot of Outputs:
1
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING