Chapter/Index: Introduction | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | Appendix
| 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: code1, code2: loop, code3: loop, code4: loop. mixed list and replace an item in the list. copy method. print all iterms in a list in a seperate line. data structures. General. code.
|