Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
txt = "apple#banana#cherry#orange" x = txt.split("#") print(x)
x
txt
=
"apple#banana#cherry#orange"
x
=
txt
.
split
(
"#"
)
print
(
x
)
['apple', 'banana', 'cherry', 'orange']