comefrom: <doocs>0280.Wiggle Sort_1.py
code: def wiggleSort( nums: List[int]) -> None:
      for i in range(1, len(nums)):
          if (i % 2 == 1 and nums[i] < nums[i - 1]) or (
              i % 2 == 0 and nums[i] > nums[i - 1]
          ):
              nums[i], nums[i - 1] = nums[i - 1], nums[i]
masked: def sample_funcname ( var_0 : List [ int ] ) -> None :
      for var_7 in range ( 1 , len ( var_0 ) ) :
          if ( var_7 % 2 == 1 and var_0 [ var_7 ] < var_0 [ var_7 - 1 ] ) or ( var_7 % 2 == 0 and var_0 [ var_7 ] > var_0 [ var_7 - 1 ] ) :
              var_0 [ var_7 ] , var_0 [ var_7 - 1 ] = var_0 [ var_7 - 1 ] , var_0 [ var_7 ]
  