PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
'''
CHALLENGE: Split string when character changes
Level : easy
Task: 🆎➡️🅰️🅱️
Split a given string when character changes.
🚫 without built functions (as split or regex or pattern...).
✔️Note: the given string can contain all type of characters (alphanumeric, special symbols, spaces)
Example:
Input:
AaaabbbbYY@---..aaaa 555%%%%(((f)))
Output:
A
aaa
bbbb
YY
@
---
..
aaaa
555
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run