.split() breaks text into a list and .join() glues a list back into text. Together they let you reformat data — like turning a comma-separated line into something more readable.
You're given a comma-separated list of tags. Split it apart, then rebuild it with a nicer separator.
Your tasks
Given this starting value:
tags = "python,coding,web,api"
1. Use .split(",") to break tags into a list and store it in tag_list
2. Use len() to count the tags and store the number in count
3. Use .join() to join tag_list back together with " | " (space-pipe-space) between each tag, store it in pretty
4. Print count, then pretty, one per line
Expected output
4
python | coding | web | api
Constraints
- Use
.split(",") to break the string apart — do not hard-code the list
- Use
" | ".join(...) to rebuild it — do not hard-code the joined string
- No external libraries