When using a for loop, for example:
def num_count(x): for numbers in x:
if "numbers" is not always an integer, perhaps a float, how do you get by this? It throws an error.
is the only proper way to do this?
def num_count(x): numbers = (int(x)) for i in numbers: