-8

I have a list as per below, it is currently returning the first and the 3rd item in the list, but i only want the 3rd item not the 3rd, how can i achieve this?

>>>list = ['1', '2', '3', '45']
>>>print list[::2]
['1', '3']

Thanks

AlexW
  • 2,843
  • 12
  • 74
  • 156

1 Answers1

2

please, can you try it?:

print list[2]