s = '12a 123'
to_my_linking = lambda x: all(var.isdigit() for var in x.split())
to_my_linking(s)
s = '1244 432'
to_my_linking(s)
a = '123 432 543 3 235 34 56 456 456 234 324 24'
to_my_linking(a)
how can i tell if a string contains ONLY digits and spaces in python using regex