To access the fourth item in a list named ice_cream
in Python, you would use the following statement:
ice_cream[3]
In Python, list indices start at 0, so the fourth item is at index 3.
1 answer
To access the fourth item in a list named ice_cream
in Python, you would use the following statement:
ice_cream[3]
In Python, list indices start at 0, so the fourth item is at index 3.