# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     name: python3
# ---

# + colab={"base_uri": "https://localhost:8080/"} id="7Zlvu1NjG0MY" outputId="346e0842-c9c6-42de-8d52-f88244a0b436"
arr=[9,2,3,4,5,6,7]
N=len(arr)
for i in range(0,N-1,2):
  arr[i],arr[i+1]=arr[i+1],arr[i]
print(arr)


StarcoderdataJupyterScriptsDedupFiltered