


"""simple docstring"""
from collections.abc import Sequence







def   _a			( _SCREAMING_SNAKE_CASE			,	_SCREAMING_SNAKE_CASE = False			)      ->			float:
							if not arr:
														return 0

							snake_case_          =						0 if allow_empty_subarrays else float("""-inf"""			)
							snake_case_          =						0.0
							for num in arr:
														snake_case_          =						max(0 if allow_empty_subarrays else num			,	curr_sum + num			)
														snake_case_          =						max(_SCREAMING_SNAKE_CASE			,	_SCREAMING_SNAKE_CASE			)

							return max_sum


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

				testmod()

				__SCREAMING_SNAKE_CASE							:      str						=      [-2, 1, -3, 4, -1, 2, 1, -5, 4]
				print(f"""{max_subarray_sum(nums) = }""")







"""simple docstring"""
def   _a			( _SCREAMING_SNAKE_CASE			,	_SCREAMING_SNAKE_CASE			)      ->			str:
							return "\n".join(
							    f"""{number} * {i} = {number * i}""" for i in range(1			,	number_of_terms + 1			)			)


if __name__ == "__main__":
				print(multiplication_table(number=5, number_of_terms=10))



