Post

PythonPython

A
Anusha V

Posted on 27th February 2024|14 views

0
votes

Python Split String Into List

How to split a string into a list in python?

Answers
P
imran mohammad

Posted on 27th February 2024

There are two different methods by which we can split a string in Python the methods are:

  1. str.split()
  2. shlex.split()

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos