Skip to content
    Hack The FutureHack The FuturePython Notes

    UNIT 01 · TOPIC 02

    Problem Solving Techniques

    Understand the problem, split it into smaller tasks, make an algorithm, then test it.

    The idea

    Problem Solving Techniques, simply explained

    Understand the problem, split it into smaller tasks, make an algorithm, then test it.

    01

    See the big picture

    How the idea flows

    Input or goalProblem Solving Tec…Python result
    Understand the problemApply Problem Solving TechniquesRun the codeCheck the output

    Read the diagram as a simple path: begin with a problem, use the Python idea, then verify the result.

    02

    Everyday connection

    Real-life example

    ↗

    To find a book in a library, narrow by section, shelf and title instead of checking every book at once.

    03

    Learn by doing

    Python code example

    PYTHONExample
    prices = [40, 70, 25]
    cheapest = min(prices)
    print(cheapest)
    Expected result25
    Try it: Change one value in the code, predict what will happen, then run it and compare your answer.
    04

    Keep this in mind

    Key takeaways

    • Understand the problem, split it into smaller tasks, make an algorithm, then test it.
    • Think of a real problem where problem solving techniques could save time or organize information.
    • Test small changes and read the result carefully before moving to a bigger program.

    Quick self-check

    Can you explain it in your own words?

    What is the main idea of Problem Solving Techniques?

    Understand the problem, split it into smaller tasks, make an algorithm, then test it.

    Where could you see this idea in everyday life?

    To find a book in a library, narrow by section, shelf and title instead of checking every book at once.

    Keep learning · Hack The Future