Python_If_exercises
#1. Check if a number is even or odd
#2. Check if a person is eligible to vote (age 18 or above)
#3. Determine if a given year is a leap year or not
#3.1. Determine if a year is a century year
#4. Check if a number is positive, negative, or zero
#5. Write a program to find the greatest of two numbers
#6. Determine if a number is a multiple of 5
#7. Check if a character is a vowel or consonant
#8. Determine if a person is eligible for a senior citizen discount (age 60+)
#9. Check if a number is a single-digit number
#9.1. Determine if a number is between 1 and 100
#36. Check if a number lies within a range (50-100)
#10. Print "Good Morning" if the time is before 12 PM, otherwise print "Good Afternoon"
#10.1 Check if a given time is AM or PM
#11. Check if a string is empty or not
#14. Print "Weekend" if the day is Saturday or Sunday; otherwise, print "Weekday"
#15. Find if a given number is exactly divisible by both 3 and 7
#16. Check if the sum of two numbers is greater than 100
#17. Write a program to find the minimum of two numbers
#23. Check if a person is eligible for a driving license
#18. Check if a number is divisible by 2 but not by 3
#20. Check if a triangle is valid given three side lengths. the sum of any two sides is always greater than the length of the third side; this is known as the Triangle Inequality Theorem.
#21. Find the largest of three numbers
#24. Determine if a triangle is equilateral, isosceles, or scalene
#25. Determine if a student passes or fails
#26. Check if a number is a palindrome
#29. Determine if a given date is valid
#34. Check if a bank account balance is sufficient for withdrawal
#32. Determine the type of quadrilateral
#27. Calculate electricity bill
#33. Implement a basic calculator
#28. Find the grade of a student
#41. Implement a ticket pricing system
################### HARD LEVEL ###############################
#12. Verify if a number is a perfect square
#19. Determine if a given alphabet is uppercase or lowercase
#22. Determine if a number is a prime number
#31. Check if a number is an Armstrong number
#35. Implement a temperature converter
#38. Check if a number is a power of 2
#39. Determine how many days a month has
#40. Validate a password
#42. Check if three numbers form a Pythagorean triplet
#43. Convert a Roman numeral to an integer
#44. Determine zodiac sign based on birth date
#45. Check if a number is a Harshad number
#46. Validate an email format
#47. Check if a knight move in chess is valid
#48. Implement a loan eligibility checker
#49. Implement a rock-paper-scissors game
#50. Find the day of the week for a given date (without built-in functions)
Comments
Post a Comment