Loop can be applied to any 'iterable' object : For In « Language Basics « Python






Loop can be applied to any 'iterable' object

Loop can be applied to any 'iterable' object

str = "foo"; 

for char in str:
     print char

           
       








Related examples in the same category

1.For loop combined with in functionFor loop combined with in function