
Daily Python Tip ππ§
@python_tip
One #python tip per day. Do you have any? Send it to bit.ly/pythontip. Edited by @simecek, @karlafej, and... you?
ID: 827002120373207040
http://bit.ly/pythontip 02-02-2017 03:54:05
1,1K Tweet
40,40K Followers
145 Following

Use "named constructors" to create multiple ways to initialize objects class PaperSize: γ―γ©γΉγ‘γ½γγ def iso_a4(cls): return cls(210, 297) def __init__(self, width_mm, height_mm): self.width_mm = width_mm self.height_mm = height_mm