What is negative index in Python?

Python successions can be record in positive and negative numbers. For positive list, 0 is the primary record, 1 is the subsequent list, etc. For negative file, (- 1) is the last record and (- 2) is the subsequent last file, etc.

Nitin singal classes offering python training in greater noida

 
 
Summary

Leave a Reply

Your email address will not be published. Required fields are marked *