ahmet / Python-for-Data-Science
Herkese Açık Ahmet Kerem Piscine Final
find_ft_type.py 415 B
def all_thing_is_obj(object: any) -> int:
"""Print the type of the given object and always return 42."""
title = str(type(object).__name__)
title = title.capitalize()
if title == "Str":
print(f"{object} is in the kitchen : {type(object)}")
elif title in ("List", "Tuple", "Set", "Dict"):
print(f"{title} : {type(object)}")
else:
print("Type not found")
return 42