From 4f9d111e2a598a14e7e80d2998b4cd22dd29e59b Mon Sep 17 00:00:00 2001 From: hugogogo Date: Sun, 26 Oct 2025 12:38:44 +0100 Subject: [PATCH] update doc ex02 --- d00/ex02/find_ft_type.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/d00/ex02/find_ft_type.py b/d00/ex02/find_ft_type.py index 8b119da..a6d7b08 100644 --- a/d00/ex02/find_ft_type.py +++ b/d00/ex02/find_ft_type.py @@ -2,7 +2,9 @@ def all_thing_is_obj(object: any) -> int: # https://docs.python.org/3.10/library/functions.html?highlight=type#type ofType = type(object) + # https://docs.python.org/3.10/tutorial/controlflow.html#match-statements match object: + # class patterm : check against a class (check if instance when empty arguments) https://docs.python.org/3/reference/compound_stmts.html#class-patterns case list(): print("List : ", ofType) case tuple():