Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Why do we use the split method in Python?
Home
Python
Why do we use the split method in Python?
0
votes
asked
May 17, 2020
in
Python
by
SakshiSharma
Why do we use the split method in Python?
#python-split-method
#split-method
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 17, 2020
by
sharadyadav1986
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’]
Related questions
0
votes
Why Do You Use The Zip() Method In Python?
asked
Dec 19, 2019
in
Python
by
sharadyadav1986
#python-zip
Python-questions-answers
0
votes
How do you use the split() function in Python Language?
asked
Aug 30, 2020
in
Python
by
sharadyadav1986
#python-split-function
#split-function
Python-questions-answers
0
votes
How Do You Use The Split() Function In Python?
asked
Dec 14, 2019
in
Python
by
sharadyadav1986
#python-split
Python-questions-answers
0
votes
Mention the use of the split function in Python?
asked
Jan 1, 2021
in
Python
by
SakshiSharma
#split-function
#python-split-function
Python-questions-answers
0
votes
Why should we use Django framework in Python?
asked
May 17, 2020
in
Python
by
sharadyadav1986
#python-django-framework
#python-framework
Python-questions-answers
0
votes
Why do we need membership operators in Python?
asked
Oct 11, 2021
in
Python
by
rajeshsharma
membership-operators
Python-questions-answers
0
votes
Why do we need a continue in Python?
asked
Oct 11, 2021
in
Python
by
rajeshsharma
python-continue-statement
Python-questions-answers
0
votes
Why do we need a break in Python?
asked
Oct 11, 2021
in
Python
by
rajeshsharma
python-break
Python-questions-answers
0
votes
Why And When Do You Use Generators In Python?
asked
Dec 22, 2019
in
Python
by
rajeshsharma
#python-generators
Python-questions-answers
0
votes
What do we use to define a block of code in Python language?
asked
Jan 18, 2021
in
Python
by
SakshiSharma
python-block
Python-questions-answers
...