To convert the given text into an array in Python, you can use the split()
method and remove the quotes from the text. Here's an example:
main.py182 chars8 lines
Output:
main.py42 chars2 lines
In this code, we first remove the quotes from the text using the replace()
method. Then, we split the text into an array using the split()
method, with ', '
as the separator. Finally, we print the resulting array.
gistlibby LogSnag