






"""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() = }''')














"""simple docstring"""






from collections import defaultdict




def 						_UpperCamelCase			(  A = 5			):
   UpperCamelCase_     =defaultdict(A			)
   UpperCamelCase_     =0

   while True:
      UpperCamelCase_     =get_digits(A			)
      freqs[digits].append(A			)

      if len(freqs[digits]			) == max_base:
         UpperCamelCase_     =freqs[digits][0] ** 3
         return base

      num += 1




def 						_UpperCamelCase			(  A			):
   return "".join(sorted(str(num**3			)			)			)


if __name__ == "__main__":
    print(f'''{solution() = }''')
