A string is a sequence of characters. You can access the characters one at a time with the bracket operator.

I’m going to declare a variable called team and I will use it for some examples.

Len

The function Len allows you to return the number of characters inside the string. The count starts with number 0

zzz

Traversal

This one is very helpful if you want to deal one string character at a time.

zzzz zzzzz

Slices

Slices are segment of strings.You could pick up a part of the string with this one.

zzzzzz

Immutability

This means that you couldn’t replace an existing variable string at least you create a new one.

Counting

Basically this one allows you to count how many characters appears in a string.

zzzzzzzz

CC BY 4.0 #Mastery26 by jsphsalazar is licensed under a Creative Commons Attribution 4.0 International License.