def check_type(x):def check_type(x):
if type(x) == type(0): if type(x) == type(0):
print x, "is an integer" print x, "is an integer"
elif type(x) == type(1.0): elif type(x) == type(1.0):
print x, "is a float" print x, "is a float"
elif type(x) == type(""): elif type(x) == type(""):
print x, "is a string" print x, "is a string"
elif type(x) == type([]): elif type(x) == type([]):
print x, "is an array" print x, "is an array"
... ...