mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
18 lines
218 B
Python
18 lines
218 B
Python
|
"""
|
||
|
Just to check
|
||
|
"""
|
||
|
def add(a, b):
|
||
|
"""
|
||
|
>>> add(2, 2)
|
||
|
4
|
||
|
>>> add(2, -2)
|
||
|
0
|
||
|
"""
|
||
|
return a + b
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
a = 5
|
||
|
b = 6
|
||
|
print(f"The sum of {a} + {b} is {sum(a, b)}")
|