




'''simple docstring'''



def 			_UpperCamelCase (_lowerCamelCase							:     int	)->   bool:




     '''simple docstring'''





     __snake_case    					=  9

     while num > 0:
          if num % 10 != digit:
               return False
          num //= 1_00
          digit -= 1

     return True







def 			_UpperCamelCase ()->   int:




     '''simple docstring'''





     __snake_case    					=  1_38_90_26_63

     while not is_square_form(num * num	):
          if num % 10 == 3:
               num -= 6  # (3 - 6) % 10 = 7
          else:
               num -= 4  # (7 - 4) % 10 = 3

     return num * 10


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












'''simple docstring'''



from datetime import date

import requests

UpperCAmelCase_       :  str      =		'''https://api.carbonintensity.org.uk/intensity'''







def 			_UpperCamelCase ()->   str:




     '''simple docstring'''





     __snake_case    					=  requests.get(_lowerCamelCase	).json()['''data'''][0]
     return last_half_hour["intensity"]["actual"]







def 			_UpperCamelCase (_lowerCamelCase							:     Dict   ,	_lowerCamelCase							:     List[Any]	)->   list:




     '''simple docstring'''





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






