## Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

### Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today. # try and except 1/3

I don't understand why it won't return the values added together even though I have defined them as integers.

arg1 = 1

arg2 = 2

total = arg1 + arg2

my bad I thought it posted the code. Thank you for the help, I was able to figure it out. I understand that you are having a problem with this challenge, as you have not specified which part exactly you are stuck on, I will explain each part of the challenge step by step.

```def add(a, b):
return a + b
```

This first task is simple, this function takes in 2 arguments which are integers. It adds them both together then returns the sum of them both.

In the second task, you have to convert the 2 arguments into floats before you add them. You can do this using the float() function. You can shorten this code by assigning both variables in one line. Either of the 2 solutions below will work:

```def add(a, b):
a = float(a)
b = float(b)
return a + b
```
```def add(a, b):
a, b = float(a), float(b)
return a + b
```

```def add(a, b):          #define function named add which takes 2 arguments