Oct-03-2019, 03:03 PM
The first index is [] instead of 1 because list[0:0] extracts all the values between index 0 and ending at index 0. Because the beginning and end are the same index, there are no values between them. List[0:1] would extract [1].
To concatenate a value to a list, you can use the list.append() method.
To concatenate a value to a list, you can use the list.append() method.