string python untuk daftar dengan pemisah

string = "Hello, world!"
x = string.split(",") # separator here is ","
print(x) # x = ["Hello", " world!"]
Ribou