-
MathType
-
Wiris Quizzes
-
Learning Lemur
-
CalcMe
-
MathPlayer
-
Store FAQ
-
VPAT for the electronic documentation
-
MathFlow
-
BF FAQ
-
Miscellaneous
-
Wiris Integrations
Example 2
Reading time: 1minIn the first example, the size of the list was fixed. However, comprehension is especially useful when defining lists of variable size. Here, for example, is a list with random elements, of random size
CalcMe sheet | CalcMe code editor |
---|---|
![]() |
![]() |
As you may have noticed, the first expression does not explicitly depend on i. You can think of i as just a counter within a specified range. Then, you may or may not use it to define the list elements. It can also be any variable name you choose, as in the following:
CalcMe sheet | CalcMe code editor |
---|---|
![]() |
![]() |