1based
1based indexing is a convention in which the first element of an ordered collection is assigned index 1. The term is used in programming, data analysis, and mathematical notation, and is sometimes written as 1based or 1-based.
Languages and systems that use 1based indexing include Fortran, MATLAB, R, Lua, and Julia. In these environments,
In contrast, many general-purpose programming languages such as C, C++, Java, Python, and JavaScript use 0based
Pros and cons exist for each convention. 1based indexing matches everyday counting and traditional mathematical notation,
Applications of 1based indexing are common in scientific computing, statistical analysis, and domains where array-like structures