Loop can be applied to any 'iterable' object : Iterable Object : Buildin Function : Python examples (example source code) Organized by topic

C++
PHP
Python
Python Home »  Buildin Function   » [  Iterable Object  ]  Screenshots 
 



Loop can be applied to any 'iterable' object




str = "foo"

for char in str:
     print char

           
       
Related examples in the same category
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.