They are used to access locations from last indexes of any array. So lets say you want to print last two items of an array you will write print(A[-2:]) or if you dont want to display last 3 items of the array you would write print(A[:-3]).
2495 Views
Internet Safety
Payment Security
Cyber
Essentials