in block coding how to use the count variable in a "repeat nn times" block? #1909
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The repeat block is just a simpler variant of the "for item in range" block since not everyone is familiar with the latter. If you want a counter, use the item in range. That's why it is prepopulated with the
The same as your existing sample above. Appending to an empty list is no different than appending to a list that already has items: |
Beta Was this translation helpful? Give feedback.
The repeat block is just a simpler variant of the "for item in range" block since not everyone is familiar with the latter. If you want a counter, use the item in range. That's why it is prepopulated with the
range
block already in it.The same as your existing sample above. Appending to an empty list is no different than appending to a list that already has items: