update doc ex02

This commit is contained in:
hugogogo
2025-10-26 12:38:44 +01:00
parent 05487357f0
commit 4f9d111e2a

View File

@@ -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():