python-checkio/IceBase/funny-adding.py

9 lines
184 B
Python
Raw Normal View History

2019-12-20 17:23:34 +01:00
def checkio(data):
a, b = data
return a + b
if __name__ == '__main__':
assert checkio([5, 5]) == 10, 'First'
assert checkio([7, 1]) == 8, 'Second'
print('All ok')