Hey, can u guys help me? My code is here - don't understand why it's wrong

```
import math
import string
def is_int(x):
num = str(abs(x))
a = []
for i in num:
a.append(i)
for i in range(0, len(a)):
if a[i] == '.':
if a[i+1] != 0:
return False
else:
return True
```