CLASS – IX WORKSHEET 1 – PYTHON PROGRAMS (Basic Programs)
1. Write Python Program to Print Hello world!
2. Write Python program to accept name of a person and display his/her name with the message “Good Morning”. 3. Write Python Program to accept first name and last name of a person and display his/her full name along with a message “Hello”. 4. Write Python Program to Add Two Numbers . Number should be accepted from user. 5. Write Python Program to Find the Square Root of a number given by the user (use ** operator for n 0.5 ). 6. Write Python Program to Calculate the Area of a Triangle, accept base and height from user. 7. Write Python Program to Swap Two Variables . 8. Write Python Program to Convert Kilometres to Miles. 9. Write Python Program to Convert Celsius to Fahrenheit. 10.Write Python Program for simple interest. 11.Write Python Program for compound interest ,formula to calculate compound interest annually is given by: A = P(1 + R/100) t Python Program for compound interest Where, A is amount, P is principal amount , R is the rate and T is the time span. 12.Write Python Program to find Cube of a Number. 13.Write Python Program to accept two numbers and print their quotient and remainder. 14.Write Python Program to calculate circumference of a circle. 15.Write Python Program to find area of a rectangle. Length and breadth should be given by the user.