iNTERFACEWARE Products Manual > Learning Center > Learning Python > Lists > Lists and Conditional Statements |
![]() ![]() |
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
You can use a list with the for statement, to process each element of the list in turn:
You can also use a list with an if statement:
This is a convenient way to determine whether a value matches, or does not match, one of a number of acceptable alternatives. |