Daily Python Tip 🐍🐧 (@python_tip) 's Twitter Profile
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

linkhttp://bit.ly/pythontip calendar_today02-02-2017 03:54:05

1,1K Tweet

40,40K Followers

145 Following

Daily Python Tip 🐍🐧 (@python_tip) 's Twitter Profile Photo

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