Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Creative category for Funny Addition by andrea.manno1
def checkio(data):
"""The sum of two integer elements"""
#No idea if that's what you'd consider funny
data.sort()
a,b=data
if a==b:
return a*2
for i in range(b,b*2):
if i%b==a:
return i
if __name__ == '__main__':
assert checkio([5, 5]) == 10, 'First'
assert checkio([7, 1]) == 8, 'Second'
print('All ok')
Dec. 20, 2014