how to design code in python?,duck.quack()