how to check if a number is in a number python code example
Example 1: is number python
var.isdigit()
#return true if all the chars in the string are numbers
#return false if not all the chars in the string are numbers
Example 2: if any number python
def num_there(s):
return any(i.isdigit() for i in s)