Addition with One input

2k views Asked by At

I am using codio and ran into a challenge that doesn't make sense to me. It says "Your code should expect one input. All you need to do is add 12 to it and output the result".

I am new to Python and was wondering if someone could explain what this means. I can't seem to find any information anywhere else.

3

There are 3 answers

0
Atto Allas On

This is asking you to make a function which adds 12 to any number you input.

This could be done as follows:

def add_12(num):
    return num+12
0
Eugene Lisitsky On

It's a task definition. You have to write a function which accepts one input parameter, add 12 to it, and return back to caller.

1
APRO On

Your solution is as below:

print(N+12)