ZIP indir
0
main
1 dal
git@carbon4code.com:ahmet/Python-for-Data-Science.git
Ahmet Kerem Piscine Final
10 commit
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