in Python by
Q:
Why do we use the split method in Python?

1 Answer

0 votes
by
split() method in Python is mainly used to separate a given string.

Example:

1

2

x = "Madanswer Online Training"

print(a.split())

Output:

1

[‘Madanswer’, ‘Online’, ‘Training’]
Click here to read more about Python
Click here to read more about Insurance

Related questions

0 votes
asked Jan 1 in Python by SakshiSharma
0 votes
asked Aug 30, 2020 in Python by sharadyadav1986
0 votes
asked Oct 30, 2020 in Bootstrap by sharadyadav1986
0 votes
asked Jan 11, 2020 in Big Data | Hadoop by rajeshsharma
0 votes
asked Oct 30, 2020 in Bootstrap by sharadyadav1986
0 votes
...