Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

items of list

in python below is how you swap 2 elements of list
            x[i+1],x[i]=x[i],x[i+1]
Don't use function swap(user defined or pre-defined)
 
PREVIOUS NEXT
Tagged: #items #list
ADD COMMENT
Topic
Name
3+7 =