On Thursday, December 29, 2016 at 1:08:04 PM UTC, Dima Pasechnik wrote:
>
>
>
> On Thursday, December 29, 2016 at 11:18:53 AM UTC, jianrong wrote:
>>
>> Dear all,
>>
>> I am trying to do some computations about Weyl groups in Sage cloud (Sage 
>> online).
>>
>> How to use sage combinat in Sagecloud?
>>
>> W = WeylGroup(["A", 5], prefix = "s")
>> l=list(W);   l.sort(); l;
>>  
>>
>> When I try to compute length(l[2]), there is an error which says that 
>> length is not defined. I use  Sage cloud because my laptop is Windows 
>> system. So I didn't install Sage on my laptop.
>>
>
> the Python function for the length of a list is len(), not length()
>

anyhow, l[2] is not a list; what you want to do is the following:
sage: w=l[2]
sage: w.length()
14

Hope this helps. 

>
>  
>
>>
>> Thank you very much.
>>
>> Best regards,
>> Jianrong.
>>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to