Get length of paginated list #586
Answered
by
bennettscience
datavoyager
asked this question in
Q&A
-
Hi Folks, Have just come across canvasapi and am mightily impressed. I've trying to get the length of a paginated list of sections:
len() doesn't appear to work. Is there any way to get the paginated list size or is it not possible due to the way they are retrieved? Best wishes, |
Beta Was this translation helpful? Give feedback.
Answered by
bennettscience
Feb 2, 2023
Replies: 1 comment 2 replies
-
To get the length, it needs to be cast into a |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Thetwam
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To get the length, it needs to be cast into a
list
. So,len(list(sections))
will give you the length quickly.