Lists and list() in Python - Integrated Circuits - - An Online Book - |
||||||||
Integrated Circuits http://www.globalsino.com/ICs/ | ||||||||
================================================================================= | ||||||||
======================================================= Both lists and tuples can contain multiple values, which makes it easier to handle large amounts of data. Basic 1. Augmented assignment operators. code: Basic 2. Index in a list. code: ======================================================= General: code: ======================================================= General: code: ======================================================= Output the rows if the cell value is in a specific range: code: ======================================================= ======================================================= Simple lists: code: ======================================================= Looping through a list from left to right: code: ======================================================= Looping through a list by assigning the list to a variable, and then use the variable name in the for loop. code: ======================================================= Looping through a list by assigning the list to a variable, and then use the variable name in the for loop. However, mark it Terminated and ignore the rest of the items in the list when see "End". code: ======================================================= Mixed list and replace an item in the list. code: ======================================================= Methods of copy. code: ======================================================= Print all iterms in a list in a seperate line. code:
|
||||||||
================================================================================= | ||||||||
|
||||||||