#shorts
Let's create a class in Python.
We will define a constructor (init method), we will create two class instances (or objects), and finally print the same instance attribute for both instances.
Notice how we use self in the constructor.
Everything is under a minute!
Find out how to create your classes in Python with the following CodeFatherTech tutorial:
https://codefather.tech/blog/python-c...
If you are getting started with Python, here is your FREE Python Starter Checklist:
https://codefather.tech/the-python-st...
Keep growing!
Claudio
#CodeFatherTech
Sur cette page du site, vous pouvez voir la vidéo en ligne Python Class Init, Instances and Instance Attributes durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur CodeFatherTech 07 novembre 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 734 fois et il a aimé 23 téléspectateurs. Bon visionnage!