Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
PYTHON PRACTICALS
1. WAP to calculate the area and circumference of a circle if radius is
given. 2. WAP to find the simple interest if principal, rate and time are given 3. Write a program to read length and breadth of a rectangle and calculate its area and perimeter. 4. Write a program to input marks in 5 different subjects , calculate total and percentage of a student. 5. Write a program to check if the number is even or odd. 6. Write a script which inputs two numbers from the user and checks if first number is divisible by the second or not. The script should then display an appropriate message. 7. Write a program to input two numbers and check which number is greater. 8. Write a program to input three numbers and check which number is greatest. 9. A company decided to give bonus of 5% to employee if his/her year of service is more than 5 years.Ask user for their salary and year of service and print the net bonus amount. 10.Take input age of 3 different people by user and determine oldest and youngest among them 11.A student will not be allowed to sit in exam if his/her attendance is less than 75%. Take following input from user Number of classes held Number of classes attended. And print percentage of class attended Is the student allowed to sit in exam or not. 12.Write a program to input the cost price of 3 items. Calculate selling price as 2 times of the cost price. And check if the total selling price of three items is in round figure or not. 13.Write a program to input the total marks out of 500, calculate percentage of a student and check if the percentage is above 85% then student is eligible for scholarship else not. 14.Write a program to input three number and display the smallest and greatest of the three. 15. Write a program to input two numbers and choice of operator(+/-/*) and perform the calculation as per the operator entered. 16.Write a program to input a number and print the first five multiples. 17.Write a program to input a character and check if it is a vowel or not. 18.Write a program to input Name,class and age of a student and display the details with a message “ Hello <Name> Welcome to <Class> you are <age> years old” 19.Write a program to input a number and check if the number is negative or positive.