Skip to content
    Hack The FutureHack The FuturePython Notes

    UNIT 03 · TOPIC 02

    Calling Functions

    Call a function by writing its name followed by parentheses and any required arguments.

    The idea

    Calling Functions, simply explained

    Call a function by writing its name followed by parentheses and any required arguments.

    01

    See the big picture

    How the idea flows

    Input or goalCalling FunctionsPython result
    Understand the problemApply Calling FunctionsRun 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

    ↗

    Pressing a saved shortcut runs the same sequence of actions again.

    03

    Learn by doing

    Python code example

    PYTHONExample
    def greet(name):
        print('Hello,', name)
    greet('Leena')
    Expected resultHello, Leena
    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

    • Call a function by writing its name followed by parentheses and any required arguments.
    • Think of a real problem where calling functions 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 Calling Functions?

    Call a function by writing its name followed by parentheses and any required arguments.

    Where could you see this idea in everyday life?

    Pressing a saved shortcut runs the same sequence of actions again.

    Keep learning · Hack The Future