PYTHON HOMEWORK QUESTIONS
08/06/2026
1. Write a program to check whether a number is Positive, Negative,
or Zero.
2. Write a program to check whether a number is Odd or Even.
3. Write a program to check whether a person is eligible for voting or
not (Age ≥ 18).
4. Write a program to check whether a student has Passed or Failed
(Pass Marks = 33).
5. Write a program to find the greater number between two numbers.
6. Write a program to find the greatest among three numbers.
7. Write a program to check whether a number is a multiple of 5 or
not.
8. Write a program to check whether a given year is a Leap Year or
not.
9. Write a program to display the grade of a student according to the
following criteria:
1. Marks ≥ 90 → Grade A
2. Marks ≥ 80 → Grade B
3. Marks ≥ 70 → Grade C
4. Marks < 70 → Grade D
10. Write a program to create a simple login system that checks:
1. Username = admin
2. Password = 1234
Additional Practice Questions
1. Write a program to check whether a number is a multiple of 7 or not.
2. Write a program to check whether a character is a Vowel or a Consonant.
3. Write a program to find the smallest among three numbers.
4. Write a program to check whether a number is divisible by both 3 and 5.
5. Write a program to calculate the electricity bill:
Up to 100 units → ₹5 per unit
Above 100 units → ₹8 per unit
1. Write a program to check whether a person is a Child, Teenager, Adult, or
Senior Citizen based on age.
2. Write a program to check whether a number is a three-digit number or not.
3. Write a program to check whether a student has secured Distinction (Marks ≥
75), First Class (≥ 60), Second Class (≥ 50), or Pass.
4. Write a program to check whether a given day number (1–7) represents a
Weekday or Weekend.
5. Write a program to calculate the discount on a product:
Purchase ≥ ₹5000 → 20% Discount
Purchase ≥ ₹2000 → 10% Discount
Otherwise → No Discount.