Skip to content

Instantly share code, notes, and snippets.

@dongwooklee96
Created May 15, 2021 15:27
Show Gist options
  • Save dongwooklee96/7733804e903c9f34e0333bfe472d1005 to your computer and use it in GitHub Desktop.
Save dongwooklee96/7733804e903c9f34e0333bfe472d1005 to your computer and use it in GitHub Desktop.
def solve(a, b):
return abs(a - b)
if __name__ == '__main__':
a, b = map(int, input().split())
print(solve(a, b))
def test_input_1():
assert solve(-2, 5) == 7
def test_input_2():
assert solve(2, 5) == 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment