Example & Tutorial understanding programming in easy ways.

How do we use the split() function in Python ?

program:


s="My_string_123"

l=s.split("_")

print(l)


// output is ['my','string','123']

Read More →