xxxxxxxxxx
var.isdigit()
#return true if all the chars in the string are numbers
#return false if not all the chars in the string are numbers
xxxxxxxxxx
name = "Bob"
age = 23
if(type(name) != str):
print("Name is not string!")
if(type(age) != int):
print("Age is not int!")
# Alternative
if(not isinstance(name, str)):
print("Name is not string!")
if(not isinstance(age, int)):
print("Age is not int!")