This question already has an answer here:
How do I check if a string is a number (float) in Python?
The best approach here is to just try and convert it and ignore the error if the conversion fails. For example:
try: your_list.append(int(user_input)) except ValueError: pass