optional arguments in initializer of python class
You can set default parameters: If you don’t explicitly call the class with j and k, your instance will use the defaults you defined in the init parameters. So when you create an instance of this object, you can use all four parameters as normal: OpticalTransition(‘sodium’, 5, 100, 27) Or you can omit the parameters with defaults with OpticalTransition(‘sodium’, 5), … Read more