if is number in python code example Example: if any number python def num_there(s): return any(i.isdigit() for i in s)