Why Do I Get An Error When Trying To Use _init_?
So I was just trying to do the same basic classes example from python.org in my Python 3.7.0 IDLE (Shell), and when I tried to run this code: class Giraffes: def _init_(self, s
Solution 1:
The constructor method (like other Python magic methods) is called __init__
(two underscores on each side).
Post a Comment for "Why Do I Get An Error When Trying To Use _init_?"