Hey all,

While going through the Attribute Functions exercise in Python3, I came up with the following solution that passed the test:

```
how_many_s = [{'s': False}, "sassafrass", 18, ["a", "c", "s", "d", "s"]]
for i in how_many_s:
try:
print(i.count("s"))
except AttributeError:
continue
```

As I read the FAQ, it seemed like maybe others had done it a different way, so I checked the “Give me solution” answer which is:

```
for element in how_many_s:
if hasattr(element, "count"):
print(element.count("s"))
```

Both of them work, so I was just curious about which method would be better to use in a real world scenario. Maybe I’m biased, but the way I did it seems a little cleaner and more straightforward? Any insight you all have is much appreciated. Thanks in advance!