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 AxesAdvancedIdentify the origin and coordinate axes with Python conditions. Students learn why the most specific zero-coordinate case belongs before the broader axis tests.Open example →py# Take coordinates x = float(input("Enter x coordinate: ")) y = float(input("Enter y coordinate: "))
- 02Check Pythagorean TripletAdvancedTest three integers against the Pythagorean equation. Students examine all possible longest-side positions and the limits of an unchecked numeric input.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 DateAdvancedValidate a day and month for a common year using Python. Students follow nested bounds checks, month groups, and the missing year needed for leap-day support.Open example →py# Take day and month day = int(input("Enter day: ")) month = int(input("Enter month (1-12): "))
- 04Clock Angle CalculationAdvancedFind the smaller angle between clock hands with Python. Students account for the moving hour hand and compare the two arcs on a twelve-hour clock face.Open example →py# Take time hours = int(input("Enter hours (1-12): ")) minutes = int(input("Enter minutes (0-59): "))
- 05Check Arithmetic ProgressionAdvancedCheck whether three entered values form an arithmetic progression. A lesson on equal consecutive differences, input order, and floating-point comparisons.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 ProgressionAdvancedCheck equal ratios between three values. Students trace division guards, nested decisions, and why this simple geometric-progression test rejects zeros.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 ProductAdvancedCompare a positive integer's digit sum and digit product in Python. Students trace two accumulators, digit extraction, and why an unchanged copy is useful.Open example →py# Take number num = int(input("Enter a number (1-9999): ")) # Calculate sum and product of digits
- 08Compare Two DatesAdvancedCompare two day-and-month dates in Python without a date library. Students prioritize the month, break ties with the day, and recognize missing year validation.Open example →py# Take first date day1 = int(input("Enter first day: ")) month1 = int(input("Enter first month: "))
- 09Determine CenturyAdvancedConvert a positive year into its century with Python integer arithmetic. Students handle exact hundreds separately and build the correct English ordinal suffix.Open example →py# Take year year = int(input("Enter a year: ")) # Calculate century
- 10Absolute Difference CheckAdvancedMeasure the gap between two numbers without keeping its sign. Students use Python abs, float subtraction, and a strict comparison with the threshold ten.Open example →py# Take two numbers num1 = float(input("Enter first number: ")) num2 = float(input("Enter second number: "))