Exercise Sheet 1
Exercise Sheet 1
1. Accept two numbers from user, perform basic math operations and print results.
2. Write and execute Python program to calculate volume and surface area of Sphere and
print results.
3. Write and execute Python program to test if a number is divisible by 3 or 5 or both. If yes
print ‘True’ else print ‘False’.
4. Accepts inputs from user as base and height of right angled triangle and return length of
hypotenuse. (Pythagoras Theorem)
5. Define a multiline string and use membership operator to check if a word belongs to the
string or not. (Return True or False)
1. Write and execute Python program to find LCM of 3 numbers (integers) entered by user.
2. Write and execute Python program to convert angle from degrees to radians and print
results.
3. Write and execute Python program for weight conversion. Take weight in Kg and display
in grams, pounds.
4. Accept 2 integers (n, k) from user and return permutation (nPk) and combination (nCk)
values.
5. Write and execute a Python program to calculate power and resistance if voltage and
current values are given.
Agnel Charities
Fr. C. Rodrigues Institute of Technology, Vashi
(An Autonomous Institute & Permanently Affiliated to University of Mumbai)
Department of Electrical Engineering