1var.isdigit()
2#return true if all the chars in the string are numbers
3#return false if not all the chars in the string are numbers
1>>> def hasNumbers(inputString):
2... return any(char.isdigit() for char in inputString)
3...
4>>> hasNumbers("I own 1 dog")
5True
6>>> hasNumbers("I own no dog")
7False
8