For each element

For each element

Table of Contents


The For each element Deluge syntax executes a set of tasks repeatedly, for each element in the list.


for each <elementname> in <listname>


<elementname> - the instance variable name which holds the value of each element
<listname> - the list to be iterated.


In the following sample code, val is the user-defined variable name which will hold the value of each element iterated in the sports_list.

for each val in sports_list

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: