0
Are there any functions that check wether a variable is an integer or not?
a = âhelloâ b = a.isalpha() print(b) The output will be True I need a function similar to isalpha() to check wether the variable is an integer or not.
1 Answer
0
Jay Matthews I mean for a variable with an actual integer not numbers within a string.
a = 200
b = a.something()
print(b)
Output: True