In a string, the position of a letter is called index. As shown in the table given below, index count starts from zero and even spaces have an index.
We can separate a part of a string by using the colon (“:”) operator.
In the example given above, we have separated ‘Big’ from the string Big Binary.
The operator considers the zeroth position character but excludes the last character.
In the example above, try changing the indexes to extract different parts of the string.