Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Speedy category for Funny Addition by gatto_volante
def checkio(data):
g=[]
"""The sum of two integer elements"""
a, b = data
for x in range(0,a):
g.append(1)
for x in range(0,b):
g.append(1)
print(len(g))
return len(g)
if __name__ == '__main__':
assert checkio([5, 5]) == 10, 'First'
assert checkio([7, 1]) == 8, 'Second'
print('All ok')
Jan. 14, 2018