Write A Program To Implement A Algorithm In Python