← Back to team overview

yade-users team mailing list archive

Re: [Question #228866]: What is the meaning of len()?

 

Question #228866 on Yade changed:
https://answers.launchpad.net/yade/+question/228866

    Status: Open => Answered

Luc Scholtès proposed the following answer:
Hi Ray,

len() is a python function, not a specific yade function.

It is defined in the python documentation there:
http://docs.python.org/2/library/functions.html?highlight=len#len

len(O.bodies) returns the number of 'bodies' defined in the current
simulation (O).

Cheers

Luc

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.