





'''simple docstring'''







from datetime import date

import requests

snake_case_  :							Optional[int]            =	"https://api.carbonintensity.org.uk/intensity"





def 							lowerCamelCase_   (	)			->						str:
						UpperCAmelCase_      :   List[str]      =	requests.get(SCREAMING_SNAKE_CASE__ ).json()['''data'''][0]
						return last_half_hour["intensity"]["actual"]





def 							lowerCamelCase_   (	SCREAMING_SNAKE_CASE__   :      int,      SCREAMING_SNAKE_CASE__   :      int )			->						list:
						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() = }''')













'''simple docstring'''





from math import cos, sin






def  lowerCamelCase_  (     lowercase__):
 lowerCamelCase__	=  float(lowercase__)
 return [[scaling_factor * int(x == y) for x in range(2)] for y in range(2)]






def  lowerCamelCase_  (     lowercase__):
 lowerCamelCase__	,						lowerCamelCase__	=  cos(lowercase__), sin(lowercase__)
 return [[c, -s], [s, c]]






def  lowerCamelCase_  (     lowercase__):
 lowerCamelCase__	,						lowerCamelCase__	=  cos(lowercase__), sin(lowercase__)
 lowerCamelCase__	=  c * s
 return [[c * c, cs], [cs, s * s]]






def  lowerCamelCase_  (     lowercase__):
 lowerCamelCase__	,						lowerCamelCase__	=  cos(lowercase__), sin(lowercase__)
 lowerCamelCase__	=  c * s
 return [[2 * c - 1, 2 * cs], [2 * cs, 2 * s - 1]]


print(F"""    {scaling(5) = }""")
print(F"""  {rotation(45) = }""")
print(F"""{projection(45) = }""")
print(F"""{reflection(45) = }""")

