Introduction
Splitting a string helps you break a sentence or list into smaller parts so you can use each piece separately.
You have a list of names separated by commas and want to get each name alone.
You receive a sentence and want to count or use each word separately.
You get data from a file or user input where items are joined by a special character.
You want to separate a date like '2024-06-01' into year, month, and day.