Loop can be applied to any 'iterable' object : Iterable Object « Buildin Function « Python
- Python
- Buildin Function
- Iterable Object
Loop can be applied to any 'iterable' object

str = "foo";
for char in str:
print char
Related examples in the same category