Hard questions
Basic Level (1–15)
- Take a number and check if it is positive, negative, or zero.
- Take a number and check if it is even or odd.
- Take age and print:
- "Child" if age < 13
- "Teen" if age 13–19
- "Adult" otherwise
- Take marks and print:
- "Fail" if < 35
- "Pass" if 35–59
- "First Class" if 60–79
- "Distinction" if 80+
- Take temperature and print:
- "Cold" if < 15
- "Warm" if 15–30
- "Hot" if > 30
- Take salary and classify:
- Low (< 30000)
- Medium (30000–70000)
- High (> 70000)
- Take a number and check if it is divisible by 3, 5, or both.
- Take two numbers and print which one is greater or if equal.
- Take a character and check if it is a vowel or consonant.
- Take a year and check if it is leap year or not.
- Take a number and check if it is 1-digit, 2-digit, or 3-digit.
- Take exam score and print grade (A, B, C, D, F).
- Take a number and check if it lies between 10 and 50.
- Take username and check:
- "admin" → Admin Access
- "guest" → Guest Access
- otherwise → Invalid User
- Take password and check if it matches "python123".
Intermediate Level (16–35)
- Take three numbers and print the largest.