0% found this document useful (0 votes)
4 views1 page

Python Programs for Number Checks

Uploaded by

shreyanship4
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Python Programs for Number Checks

Uploaded by

shreyanship4
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1. Question: Write a Python program to check if a number is even or odd.

2. Question: Write a Python program to find the largest of two numbers.

3. Question: Write a Python program to check if a number is positive, negative, or zero.

4. Question: Write a Python program to check if a number is divisible by both 3 and 5.

5. Question: Write a Python program to find the smallest of three numbers.

6. Question: Write a Python program to check if two numbers are equal.

7. Question: Write a Python program to calculate the sum of two numbers and check if the sum
is greater than 100.

8. Question: Write a Python program to check if a given year is a leap year.

9. Question: Write a Python program to check if a number is a multiple of 10.

10. Question: Write a Python program to find the absolute difference between two numbers and
check if the difference is less than 10.

11. Question: Write a Python program to compare the product of two numbers with their sum.

12. Question: Write a Python program to calculate the square of a number and check if it is
greater than 50.

13. Question: Write a Python program to check if a number is within the range of 1 to 100.

14. Question: Write a Python program to find the quotient and remainder of two numbers and
check if the remainder is zero.

15. Question: Write a Python program to check if the sum of three numbers is greater than their
product.

16. Question: Write a Python program to check if the sum of two numbers is equal to their
difference.

17. Question: Write a Python program to calculate the average of two numbers and check if the
average is a whole number.

18. Question: Write a Python program to find the maximum of three numbers without using
`max()` function.

19. Question: Write a Python program to check if a number is divisible by either 2 or 5 but not
both.

20. Question: Write a Python program to check if the sum of squares of two numbers is equal to
the square of their sum.

You might also like