Articles
The problem...
You know how to store values. But not all values are the same.
A name is not a number. A number is not true or false.
If you treat them the same way, things brea…
The problem...
You know how to label values. But not all values are numbers.
But most real programs don't just deal with numbers.
They deal with names, messages, words. Text.
…
The problem...
You have a string. You know it stores text.
But what if you need just one character from it?
Not the whole thing. Just one piece.
The idea!
Every character in …
The problem...
You know how to get one character from a string.
But what if you need more than one?
A word from a sentence. A piece of a code. A chunk of text.
One index isn't…
The problem...
You can store text. You can access characters. You can slice.
But sometimes you need to do more.
Change the case. Remove extra spaces. Find out how long somethin…
The problem...
You know how to transform a string.
But sometimes you don't need to change it. You need to work with what's inside.
Is a word in there? Where exactly? Can you br…