Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 3

78 bytes added, 09:35, 3 June 2017
PART 2 - Manipulating Items in Lists
min(list_of_numbers) # Returns the smallest value in the list
max(list_of_numbers) # Returns the largest value in the list
</source>:#Now on In addition to some manipulating and obtaining characteristics of the more powerful features of Python lists. Searching a list, it is also useful to be able to perform searches for values inside within lists and finding locations obtain the location of values in for elements contained within a list. The '''index() ''' function allows searching inside a list for a value, it will return the index number of the first occurence. <source>
number = 10
help(list_of_numbers.index)
13,420
edits