Objectives

ืžื˜ืจืช ื”ืžืขื‘ื“ื”:


ื—ืœืง 1 โ€“ ื™ืฆื™ืจืช ืคืจื•ื™ืงื˜ ืืžื™ืชื™

ื”ืกื‘ืจ

ื ื‘ื ื” ืืคืœื™ืงืฆื™ื” ืคืฉื•ื˜ื” ืฉืœ Calculator ืขื ืงื‘ืฆื™ื ื ืคืจื“ื™ื.


ืฉืœื‘ 1 โ€“ ื™ืฆื™ืจืช ืžื‘ื ื” ืคืจื•ื™ืงื˜

mkdir real-branch-lab
cd real-branch-lab
mkdir calculator
cd calculator
git init

ืฉืœื‘ 2 โ€“ ื™ืฆื™ืจืช ืงื•ื‘ืฅ ืจืืฉื™

from operations import add

def main():
    result = add(2, 3)
    print("Result:", result)

if __name__ == "__main__":
    main()

ืฉืœื‘ 3 โ€“ ื™ืฆื™ืจืช ืงื•ื‘ืฅ ืคืขื•ืœื•ืช

def add(a, b):
    return a + b