I am trying to check if in a string(eg "Hello my name is 3") if there is a number. In my example the code I want to write would identify the number 3.
I have tried the code bellow. I know the "int(range(1,10)): " part is not going to work at all but I put it there to show what im trying to achieve if that makes sense.
for x in text:
if x != " " or x != int(range(1,10)):
print(x)