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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: