```
def by_three(n):
if n/3 == int:
return "is divisible by 3"
else:
return False
```

Why exactly doesn’t this work? I thought int was a data type recognized by Python, and if it is then this code should work right?

This is from the Functions section lesson 6/19

===================================================================================

Solution:

```
def by_three(n):
if type(n/3.) == int:
return "is divisible by 3"
else:
return False
```