split() method in Python String Module
split methodbreaks the string in different parts at the specified word or character. This word or character is also called as separator which divides the string.
Syntax
str.split()Example-1:
text = "welcome to the Harvard"
x = text.split()
print(x)
Output:
