A Algorithm In Python With Example