Create main.py
This commit is contained in:
parent
6c7f6659ad
commit
b49138f42b
14
Exercice4/main.py
Normal file
14
Exercice4/main.py
Normal file
@ -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}")
|
Loading…
x
Reference in New Issue
Block a user