Python Day 28 – strings strings strings

More contextual string knowledge acquired!

I learned:

You can use math operations within the [brackets] of strings to call for an index position! For instance string[5*2] and string[12-2] and string[10] all produces the same thing. That actually kinda excites me. Other than that today was just more practice with slicing and steps in strings. I learned that you can cross use negative and non negative values for ending / beginning values (ex: string[-4:12]).

Fun stuffs.

I’m just starting winter break now so I’ll hopefully be going quicker through this early learning stuff. See ya in the next one 🙂

Leave a Reply

Discover more from

Subscribe now to keep reading and get access to the full archive.

Continue reading