



"""simple docstring"""


def 				_lowerCAmelCase   (     lowercase_		):
						UpperCAmelCase    =				[]
						UpperCAmelCase    =				1

						for i in range(len(lowercase_		)		):
												if i + 1 < len(lowercase_		) and text[i] == text[i + 1]:
																		count += 1
												else:
																		encoded.append((text[i], count)		)
																		UpperCAmelCase    =				1

						return encoded

def 				_lowerCAmelCase   (     lowercase_		):
						return "".join(char * length for char, length in encoded		)


if __name__ == "__main__":
				from doctest import testmod

				testmod(name="""run_length_encode""", verbose=True)
				testmod(name="""run_length_decode""", verbose=True)










"""simple docstring"""


from math import exp

def 				_lowerCAmelCase   (     lowercase_		):
						return 8 * x - 2 * exp(-x		)

def 				_lowerCAmelCase   (     lowercase_	,			lowercase_	,			lowercase_		):
						UpperCAmelCase    =				lower_bound
						UpperCAmelCase    =				upper_bound
						for _ in range(0	,			lowercase_		):
												UpperCAmelCase   ,					UpperCAmelCase    =				xa, xa - (f(lowercase_		) * (xa - xa)) / (f(lowercase_		) - f(lowercase_		))
						return xa


if __name__ == "__main__":
				print(f'''Example: {secant_method(1, 3, 2)}''')





