Python 2.7.1 (r271:86832, Mar 20 2011, 15:40:35)
[GCC 4.4.1] on linux2
    !h - for getting help
    !l - for getting learn
                    
>>> Console open console max
Stop
Loading...

Funny addition

We have an array of two elements. Add these
two elements together.
Input: An array of two elements.

We have an array of two elements. Add these two elements together.

Input: An array of two elements. Each element is an integer.

Output: The sum of two integer elements

Example:

And remember, "sum" is not funny solution :)

checkio([5, 5]) == 10
checkio([7,1]) == 8

0 comments...

Only authorized users can reply. Login

Facebook Linkedin Twitter GoogleGroups email and gtalk FeedBurner | Help | How to help | Contact us | About us | Get Widget | Live help