How to design code in Python?,duck.quack()