This won't even compile, but maybe you just need to format the text of your question. Please use "Improve question" and
<pre>
tags for source code.
Why helping with the code when the original idea is wrong? All those repeated conditional statements are evil. (You probably meant "
if
", not
when
".) Where did you get those
LIST1
,
LIST2
..? You should not have these variables at all. They should be
list[0]
,
list[1]
… in first place. What do you think arrays are for. In this case, no ifs no buts, just one loop.
It makes no sense to ask about very basic syntax before you read the documentation
http://www.python.org/doc/[
^].
—SA