DEV Community

Cover image for Day 6 of documenting my learning journey
James Kabuga
James Kabuga

Posted on

Day 6 of documenting my learning journey

What I did today

  1. How indexing strings works
  2. How slicing strings works

I learned

Indexing

Indexes start from 0.
We incorporate indexing by using square brackets.

Example in action:

Slicing

We have to specify the start and the last index.
Spaces are also counted as parts of the index.

Example in action:

Resources I used

I used github and python series by Bonaventure Ogeto on youtube

What's next

Tomorrow I'll be learning on string methods and operations.

Top comments (0)