"""simple docstring"""




def 							_UpperCAmelCase		(       lowerCamelCase__     ):





		"""simple docstring"""




		lowerCAmelCase__        =   len(lowerCamelCase__     )
		lowerCAmelCase__        =   len(matrix[0]     )
		lowerCAmelCase__        =   min(lowerCamelCase__			,  lowerCamelCase__     )

		for row in range(lowerCamelCase__     ):
				# Check if diagonal element is not zero
				if matrix[row][row] != 0:
						# Eliminate all the elements below the diagonal
						for col in range(row + 1			,  lowerCamelCase__     ):
								lowerCAmelCase__        =   matrix[col][row] / matrix[row][row]
								for i in range(lowerCamelCase__			,  lowerCamelCase__     ):
										matrix[col][i] -= multiplier * matrix[row][i]
				else:
						# Find a non-zero diagonal element to swap rows
						lowerCAmelCase__        =   True
						for i in range(row + 1			,  lowerCamelCase__     ):
								if matrix[i][row] != 0:
										lowerCAmelCase__   ,					lowerCAmelCase__        =   matrix[i], matrix[row]
										lowerCAmelCase__        =   False
										break
						if reduce:
								rank -= 1
								for i in range(lowerCamelCase__     ):
										lowerCAmelCase__        =   matrix[i][rank]

            # Reduce the row pointer by one to stay on the same row
						row -= 1

		return rank


if __name__ == "__main__":
			import doctest

			doctest.testmod()





"""simple docstring"""




import pprint

import requests

__lowerCAmelCase    :							Union[str, Any]													=						"https://zenquotes.io/api"







def 							_UpperCAmelCase		(       ):





		"""simple docstring"""




		return requests.get(API_ENDPOINT_URL + """/today"""     ).json()







def 							_UpperCAmelCase		(       ):





		"""simple docstring"""




		return requests.get(API_ENDPOINT_URL + """/random"""     ).json()


if __name__ == "__main__":
			__lowerCAmelCase    :							Union[str, Any]													=						random_quotes()
			pprint.pprint(response)




