Each item i n a list has an assigned index value. This function basically sums up the numbers that are. Extend - appends elements of an iterable to the list.
Define a list heterogenousElements 3 True Michael 20 The list contains an int a bool a string and a float.
Append Parameters The append method takes a single item and adds it to the end of the list. Append Combine lists. 12 15 3 10 Output. All this means is that the first item in the list is at index 0.