code: 
  '''simple docstring'''
  
  
  
  
  
  from datetime import date
  
  import requests
  
  A           =   "https://api.carbonintensity.org.uk/intensity"
  
  def   snake_case_       (							):
        snake_case_						       =							requests.get(_a			).json()["data"][0]
        return last_half_hour["intensity"]["actual"]
  
  def   snake_case_       (							_a     :							Dict ,					_a     :							int			):
        return requests.get(F'''{BASE_URL}/{start}/{end}'''			).json()["data"]
  
  
  if __name__ == "__main__":
       for entry in fetch_from_to(start=date(2_0_2_0, 1_0, 1), end=date(2_0_2_0, 1_0, 3)):
            print("from {from} to {to}: {intensity[actual]}".format(**entry))
       print(F"""{fetch_last_half_hour() = }""")
  
  
style_context: 
  '''simple docstring'''
  
  
  
  
  
  def   snake_case_       (							_a     :							List[str] ,					_a     :							List[str]			):
        snake_case_						       =							1
        while b > 0:
              if b & 1:
                    res *= a
  
              a *= a
              b >>= 1
  
        return res
  def   snake_case_       (							_a     :							Union[str, Any] ,					_a     :							Tuple ,					_a     :							Optional[Any]			):
        snake_case_						       =							1
        while b > 0:
              if b & 1:
                    snake_case_						       =							((res % c) * (a % c)) % c
  
              a *= a
              b >>= 1
  
        return res
  
  