0

Testing for integer

How can I test for an integer python I want to be able to do somthing like this: IsInt(nums.0)

19th Oct 2017, 4:55 PM
vortetty
vortetty - avatar
2 Answers
+ 2
I'm c#, but I'm sure you could do something on the lines of this? if(num1 == num2) I'm having trouble understanding exactly what you want. are you just trying to see if an integer equals another integer? you could also use switch cases to see if your int is of certain value
19th Oct 2017, 5:19 PM
Zezima
Zezima - avatar
+ 2
i just want to know if the value is an integer, so i could go >>> isint(xyb) false >>> isint(123) true
20th Oct 2017, 12:31 AM
vortetty
vortetty - avatar