Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

swap two columns python

# 2d array a[row][col] ,  swap the columns h and k
for i in range(row):
    a[i][k] , a[i][h] = a[i][h], a[i][k]
 
PREVIOUS NEXT
Tagged: #swap #columns #python
ADD COMMENT
Topic
Name
7+1 =