Hard questions

Basic Level (1–15)

  1. Take a number and check if it is positive, negative, or zero.
  2. Take a number and check if it is even or odd.
  3. Take age and print:
  4. Take marks and print:
  5. Take temperature and print:
  6. Take salary and classify:
  7. Take a number and check if it is divisible by 3, 5, or both.
  8. Take two numbers and print which one is greater or if equal.
  9. Take a character and check if it is a vowel or consonant.
  10. Take a year and check if it is leap year or not.
  11. Take a number and check if it is 1-digit, 2-digit, or 3-digit.
  12. Take exam score and print grade (A, B, C, D, F).
  13. Take a number and check if it lies between 10 and 50.
  14. Take username and check:
  15. Take password and check if it matches "python123".

Intermediate Level (16–35)

  1. Take three numbers and print the largest.