Python Write Better Python Cleaner Code Operator Spacing

noel acio
noel acio
1,470 Points

Fix the spacing around commas, operators, and in function calls

attempted deleting all spaces line 15 but keep getting an error message ..
numbers = [1, 2, 3, 4, 5]

def add(num1, num2):
    return num1 + num2

def subtract(num1, num2):
    return num1 - num2

def mathy(num1, num2):
    up = add(5 + 7, 7 + 9)
    down = subtract(6, 3)
    return add(up, down)

1 Answer

Scott Bailey
Scott Bailey
13,175 Points

I just copied your code in and it passed the challenge.

Try refreshing the page and pasting your code back in, I have this issue sometimes and it works after the refresh