

def  _snake_case		(snake_case_					:     Tuple  )							->		list:
  for i, _ in enumerate(SCREAMING_SNAKE_CASE_  ):
    if (i % 2 == 1) == (nums[i - 1] > nums[i]):
      __UpperCAmelCase	:  Tuple		=     nums[i], nums[i - 1]

  return nums


if __name__ == "__main__":
      print('''Enter the array elements:''')
      _SCREAMING_SNAKE_CASE							 =			list(map(int, input().split()))
      print('''The unsorted array is:''')
      print(array)
      print('''Array after Wiggle sort:''')
      print(wiggle_sort(array))












import pytest

from datasets.utils.version import Version


@pytest.mark.parametrize(
    '''other, expected_equality'''				,							[
        (Version('''1.0.0'''		), True),
        ('''1.0.0''', True),
        (Version('''2.0.0'''		), False),
        ('''2.0.0''', False),
        ('''1''', False),
        ('''a''', False),
        (1, False),
        (None, False),
    ]				,							)
def        A__						(							SCREAMING_SNAKE_CASE_				,							SCREAMING_SNAKE_CASE_		) ->  Optional[int]:
		lowerCamelCase :			str    		=Version('''1.0.0'''		)
		assert (version == other) is expected_equality
		assert (version != other) is not expected_equality
		assert (hash(SCREAMING_SNAKE_CASE_		) == hash(SCREAMING_SNAKE_CASE_		)) is expected_equality

