Is there a method that I can use to check if a raw_input is an integer?
raw_input
I found this method after researching in the web:
print isinsta
You can do it this way:
try: val = int(raw_input("number: ")) except ValueError: # not an integer