code: 
  
  
  
  
  
  
  """simple docstring"""
  
  
  
  
  
  
  def 						_UpperCamelCase			(  A			)     ->   List[str]:
     return int(A			) if x - int(A			) >= 0 else int(A			) - 1
  
  
  if __name__ == "__main__":
      import doctest
  
      doctest.testmod()
  
style_context: 
  
  
  
  
  
  
  """simple docstring"""
  
  
  
  
  
  
  from datetime import date
  
  import requests
  
  A_			  =    "https://api.carbonintensity.org.uk/intensity"
  
  
  
  
  def 						_UpperCamelCase			(  ):
     UpperCamelCase_     =requests.get(A			).json()["data"][0]
     return last_half_hour["intensity"]["actual"]
  
  
  
  
  def 						_UpperCamelCase			(  A    ,       A			):
     return requests.get(f"""{BASE_URL}/{start}/{end}"""			).json()["data"]
  
  
  if __name__ == "__main__":
      for entry in fetch_from_to(start=date(2020, 10, 1), end=date(2020, 10, 3)):
          print("from {from} to {to}: {intensity[actual]}".format(**entry))
      print(f'''{fetch_last_half_hour() = }''')
  