Algorithm Example For Python Code