Feedback

Chat Icon

Learn Git in a Day

Everything you need, nothing you don't

Your First Save Point
23%

Change, Stage, Commit - Repeat

Let's add a subtraction function to our calculator:

cat << 'EOF' > calculator.py
# calculator.py - A simple calculator

def add(a, b):
    """Add two numbers and return the result."""
    return a + b

def subtract(a, b):
    """Subtract b from a and return the result."""
    return a - b

# Try it out
result_add = add(5, 3)
result_sub = subtract(10, 4)
print(f"5 + 3 = {result_add}")
print(f"10 - 4 = {result_sub}")
EOF

Now let's see what Git thinks:

Learn Git in a Day

Everything you need, nothing you don't

Enroll now to unlock all content and receive all future updates for free.

Unlock now  $9.99$7.49

Hurry! This limited time offer ends in:

To redeem this offer, copy the coupon code below and apply it at checkout:

Learn More