def include_numbers(string): print(string) #For debugging can remove for i in string: print(i) #For debugging can remove if i in ["0","1","2","3","4","5","6","7","8","9"]: print("Includes a number") return True test = include_numbers("hello123") #You can include any variable you want here print(test)