Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 3

128 bytes added, 09:47, 3 June 2017
PART 2 - Manipulating Items in Lists
courses[0]
courses
</source>It might be useful to change a list element-by-element, but there are other more efficient methods of changing a list (for example: using functions). You will now use the '''dir()''' and '''help()''' functions to see what functions and attributes are available for manipulating lists. The '''help()''' function will also give us tips on how to use those functions. For example, you can use issue help(list-name) in order to see what functions are available to use for that list specific list.<br><br>
:#Issue the following:<source>
dir(courses)
13,420
edits