




from datetime import date

import requests

lowercase_     :    Optional[int]      =			'https://api.carbonintensity.org.uk/intensity'


def 							__SCREAMING_SNAKE_CASE  (      ):

						'''simple docstring'''


						_UpperCAmelCase													=					requests.get(snake_case_						).json()["data"][0]
						return last_half_hour["intensity"]["actual"]


def 							__SCREAMING_SNAKE_CASE  (      snake_case_     ,   snake_case_						):

						'''simple docstring'''


						return requests.get(f"""{BASE_URL}/{start}/{end}"""						).json()["data"]


if __name__ == "__main__":
				for entry in fetch_from_to(start=date(20_20, 10, 1), end=date(20_20, 10, 3)):
								print('from {from} to {to}: {intensity[actual]}'.format(**entry))
				print(f"""{fetch_last_half_hour() = }""")










from __future__ import annotations


def 							__SCREAMING_SNAKE_CASE  (      snake_case_     ,   snake_case_						):

						'''simple docstring'''


						_UpperCAmelCase													=					{}
						for index, val in enumerate(snake_case_						):
												_UpperCAmelCase													=					target - val
												if compl in chk_map:
																		return [chk_map[compl], index]
												_UpperCAmelCase													=					index
						return []


if __name__ == "__main__":
				import doctest

				doctest.testmod()
				print(f"""{two_sum([2, 7, 11, 15], 9) = }""")




