def get_temp_description(x): return { type(x) == str : "it's a str", type(x) == tuple: "it's a tuple", type(x) == dict : "it's a dict"}[1]print(get_temp_description('string'))