I need to get the second value of this list
['connections-wfs', 'Prueba', 'url=https://test.com/ows/wfs\n']
The data is not always the same but if it will always have the same number of values, in this example it would be
'Proof'
I need to get the second value of this list
['connections-wfs', 'Prueba', 'url=https://test.com/ows/wfs\n']
The data is not always the same but if it will always have the same number of values, in this example it would be
'Proof'
Assuming your list is called list1.
In lists, you can access the given positions, that is list[0] will get you the first value of the list, list[1] the second, list[n] will get you the value at position n+1 of the list .
To get an element in a list you just need the index (using base 0):