Verifying type in input
Posted on 2004-10-13
I would like to be able to verify the type of input from an input statement, but I can't seem to be able to figure it out. For example:
num=raw_input("Enter a number: ")
I would like to then verify that num is an int.
I am sure that it is a bit more easy than in java, and that is probably my problem...I am looking to far into it and can't see the forest through the trees.
Thanks for your help,