PYTHON PROGRAMMING PRACTICAL FILE
PYTHON PROGRAMMING PRACTICAL FILE
27.
Grade Remarks MArks
28. Write a program to input a number and print its square if it is odd, otherwise print its square
root.
29. Input three angles and determine if they form a triangle or not.
30. Write a program to calculate BMI and print the nutritional status as per following table:
Nutritional Status WHO criteria BMI cut-off
Underweight <18.5
Normal 18.5-24.9
Overweight 25-29.9
Obese ≥30
31. Write a program to find largest among three integers.
32. Write a program that accepts the age and print if one is eligible to vote or not.
33. Write a program that accepts two numbers and check if the first number is fully
divisible by second number or not.
34. Write a program to accept the year and check if it is a leap year or not.
35. Write a program to input a number and check whether it is positive, negative or zero.
36. Write a program to display a menu for calculating area of circle or perimeter of the
circle.
37. Write a program that reads two numbers and an arithmetic operator and displays the
computed result.
38. Write a program to print whether a given character is an uppercase or a lowercase
character or a digit or any other character.
39. WAP to display all number from 1 to 15.
40. WAP to display sum of all numbers from 1 to 10.
41. WAP to display Average of numbers from 1 to 10.
42. WAP to display multiply all numbers from 1 to 10.
43. WAP to display Square all numbers from 1to 20.
44. WAP to display Cube all numbers from 1to 100
45. WAP to display all odd numbers from 1to 100.
46. WAP to display all even numbers from 1to 100.
47. Take an integer input N from the user. Print N Fibonacci numbers. Recall that
Fibonacci series progresses as 0 1 1 2 3 5 8…
48. Take an integer input N from the user. Find Factorial of N and print it .
49. Print check whether a number is prime numbers or not.
50. Take an integer input N from the user. Print the table of N.