Files
Python-2019/Solver/class en python.py
T
2019-01-20 00:55:27 +01:00

10 lines
212 B
Python

class human:
def __init__(self,nom):
self.pieds=2
self.nom=nom
def marcher(self):
print("Yes je marche avec mes "+self.nom+" pieds")
valentin=human("valentin")
valentin.marcher()