diff --git a/Exercice4/main.py b/Exercice4/main.py new file mode 100644 index 0000000..22e343c --- /dev/null +++ b/Exercice4/main.py @@ -0,0 +1,14 @@ +class myClass: +def __init__(self, full_name): +self.full_name=full_name + +def displayName(self): +print("Le nom complet est :",self.full_name) + +class other_class: +def __init__(self, first_name, name): +self.first_name=first_name +self.name=name + +def display_name(self): +print(f"Nom complet : {self.first_name} {self.name}")