def      __lowercase  (		lowerCamelCase      :  str			):
 UpperCamelCase_      :		Dict				=      [701, 301, 132, 57, 23, 10, 4, 1]
 for gap in gaps:
  for i in range(lowerCamelCase						,						len(lowerCamelCase			)			):
   UpperCamelCase_      :		Union[str, Any]				=      collection[i]
   UpperCamelCase_      :		Tuple				=      i
   while j >= gap and collection[j - gap] > insert_value:
    UpperCamelCase_      :		int				=      collection[j - gap]
    j -= gap
   if j != i:
    UpperCamelCase_      :		str				=      insert_value
 return collection


if __name__ == "__main__":
   from doctest import testmod

   testmod()
   a_					      = input('Enter numbers separated by a comma:\n').strip()
   a_					      = [int(item) for item in user_input.split(',')]
   print(shell_sort(unsorted))




from datetime import date

import requests

a_					      = 'https://api.carbonintensity.org.uk/intensity'





def      __lowercase  (		):
 UpperCamelCase_      :		Dict				=      requests.get(lowerCamelCase			).json()['data'][0]
 return last_half_hour["intensity"]["actual"]





def      __lowercase  (		lowerCamelCase      :  Union[str, Any]						,						lowerCamelCase      :  Union[str, Any]			):
 return requests.get(F"{BASE_URL}/{start}/{end}"			).json()["data"]


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



