input: Write a python function to compute the time taken for a function to execute and return the result along with the execution time.
  assert isinstance(time_execution(lambda: sum(range(1000000)))[1], float)
  assert time_execution(lambda: sum([i for i in range(10000)]))[0] == sum(range(10000))
  assert time_execution(lambda: max(range(5000)))[0] == 4999
output: import time
  
  def time_execution(func):
      start_time = time.time()
      result = func()
      end_time = time.time()
      execution_time = end_time - start_time
      return result, execution_time