Python Exercise Example 77
**Problem:** Output a list in a loop
**Analysis:** None.
Program source code:
Example
#!/
usr
/
bin
/
python
-*-
coding
:
UTF
8
-*-
if
name
== '
main
':
s
=
[
"
man
"
,
"
woman
"
,
"
girl
"
,
"
boy
"
,
"
sister
"
]
for
i
in
range
(
len
(
s
)
)
:
s
[
i
]
The output of the above example is:
man
woman
girl
boy
sister
Python 100 Examples