Answers for "python parse string"

2

python parse string

msg = "hi#my#name#is#alon"
msg = msg.split("#")
print(msg)
#output: ["hi", "my", "name", "is", "alon"]
Posted by: Guest on May-09-2020

Python Answers by Framework

Browse Popular Code Answers by Language