Home > Software engineering >  What does python array -1 mean?
What does python array -1 mean?

Time:10-04

I found something like losss_test[-1] in python script.

I was looking for web pages to get some answers for [-1].

But, I can not get the proper answer. If someone know it, please tell me the meaning on it...

CodePudding user response:

Negative numbers for an index takes the values starting from the end of the array.

  • Related