def is_num(text) return all(isdigit(char) for char in text)