def main():
personne.se_presenter()
if __name__ == "__main__":
main()
class personne:
def __init__(self, nom, age, taille, passion):
self.nom = 'Moi'
self.age = 18
self.taille = 1,83
self.passion = 'manger des pommes'
def se_presenter(self):
print("Salut, je m'appelle {}, j'ai {} ans. \n Je fais {} car j'aime {}."
.format(self.nom, self.age, self.taille, self.passion))
I'm trying to call my method from a class into the main() but I do it wrong obviously.
My goal is to have a main function on the top of my code and call in whatever is written down... Like I assume coding should works..?