Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

list_of_x_selected = [x for x,y in zip(list_of_x, list_of_y) if y>0]

 

Polymorphism

Derived class initialization

Code Block
class Base :
    def __init__(self) :
       ...
       
class Derived(Base) :
    def __init__(self) :
        Base.__init__(self)
        # OR
        super(Derived, self).__init__()   

 

 

 

Python - useful references

...