Phase 1 - Level 5: Creative / Tricky Logical Scenarios
Solve creative and tricky logical problems using advanced conditional thinking.
10 programs · open one, then the next
Start with Point Location on Axes- 01Point Location on AxesAdvancedTake coordinates (x, y) and check if the point lies on the X-axis, Y-axis, or at the origin.Open example →py# Take coordinates x = float(input("Enter x coordinate: ")) y = float(input("Enter y coordinate: "))
- 02Check Pythagorean TripletAdvancedTake three numbers and check if they can form a Pythagorean triplet.Open example →py# Take three numbers a = int(input("Enter first number: ")) b = int(input("Enter second number: ")) c = int(input("Enter third number: "))
- 03Check Valid Calendar DateAdvancedTake day and month and check if it forms a valid calendar date (ignoring leap years).Open example →py# Take day and month day = int(input("Enter day: ")) month = int(input("Enter month (1-12): "))
- 04Clock Angle CalculationAdvancedTake time (hours and minutes) and print the smaller angle between the hour and minute hands.Open example →py# Take time hours = int(input("Enter hours (1-12): ")) minutes = int(input("Enter minutes (0-59): "))
- 05Check Arithmetic ProgressionAdvancedTake three numbers and check if they are in arithmetic progression.Open example →py# Take three numbers a = float(input("Enter first number: ")) b = float(input("Enter second number: ")) c = float(input("Enter third number: "))
- 06Check Geometric ProgressionAdvancedTake three numbers and check if they are in geometric progression.Open example →py# Take three numbers a = float(input("Enter first number: ")) b = float(input("Enter second number: ")) c = float(input("Enter third number: "))
- 07Digit Sum vs ProductAdvancedTake an integer (1-9999) and check if the sum of its digits is greater than the product of its digits.Open example →py# Take number num = int(input("Enter a number (1-9999): ")) # Calculate sum and product of digits
- 08Compare Two DatesAdvancedTake two dates (day and month) and determine which one comes first.Open example →py# Take first date day1 = int(input("Enter first day: ")) month1 = int(input("Enter first month: "))
- 09Determine CenturyAdvancedTake a year and print the corresponding century (e.g., "19th century").Open example →py# Take year year = int(input("Enter a year: ")) # Calculate century
- 10Absolute Difference CheckAdvancedTake two numbers and determine if their absolute difference is < 10.Open example →py# Take two numbers num1 = float(input("Enter first number: ")) num2 = float(input("Enter second number: "))