Dear All,

I am trying to write a function in sage to permute a list of elements.

def f(i, v1):
v=[]
for j in v1:
    v.append(j)

print(v)
v[i+1]=v1[i]
v[i]=v1[i+1]
return v

But the above codes do not work. I couldn't figure out the mistake. Thank you 
very much.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/e4a029ab-cf59-4e6a-8a63-31aaf9085690%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to