But how do we succinctly tell someone to print 4 by referring to its index?
Saying: 'print the item with index one' is not succinct. I need a shorter way.
options = ['1) Play', '2) Options', '3) Exit']
metulburr wrote:If its a programmer, you can most likely assume that they know that lists/arrays start with at index 0
Kebap wrote:In natural language, indices start at number 1.
stranac wrote:What about poor fortran people? Or cobol people? Or matlab people...
Mekire wrote:Look at a ruler and tell me which number it starts with. The first inch/centimeter on a ruler is between zero and one.
(Note: Some Asian countries differ in this and a newborn is considered 1 at birth but that isn't the point).
Users browsing this forum: No registered users and 2 guests