 # why is this function not working

can someone tell what is wrong here

squared.py
```def squared(arguement):
if type(arguement)==int:
arguement**2
else:
len(arguement)*len(arguement)
```

I can defintely see your idea here, but you should be using try an except, because the challenge actually wants you to square strings that can be turned into integers aswell.

So say you have squared("2") Should return 4.

Also squared(2) should return 4. So instead of checking for type, simply try to turn the aruguement into an integer, and if that can be done, square it, else multiple the length of the string by itself.

Well i am not going to show the finished code, but i can give you some pointers. There is a function that 'trys' to to turn something into an int, it will spit a valueError if it cant, so look here.

```try:
int(arguement)
# If it can do that it will go here
except ValueError:
# If it cant it will go here.
```

So if we have:

```test = "5"
test = int(test)
# Now test would be the integer 5.
```

Try to see if you can solve it with that, else feel free to write back!