Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

Post Timeline

added 8 characters in body
Source Link
Libra
  • 2.6k
  • 1
  • 11
  • 29

What command in python can be used to make the string ST = "WORK,IS,DONE" a list ["WORK","IS","DONE"]?

I am trying this but its not working

ST = txt.split(",")
print(ST)```
ST = txt.split(",")
print(ST)

What command in python can be used to make the string ST = "WORK,IS,DONE" a list ["WORK","IS","DONE"]?

I am trying this but its not working

ST = txt.split(",")
print(ST)```

What command in python can be used to make the string ST = "WORK,IS,DONE" a list ["WORK","IS","DONE"]?

I am trying this but its not working

ST = txt.split(",")
print(ST)
Source Link
noor
  • 21
  • 3

In Python how to convert a string into list

What command in python can be used to make the string ST = "WORK,IS,DONE" a list ["WORK","IS","DONE"]?

I am trying this but its not working

ST = txt.split(",")
print(ST)```
lang-py

AltStyle によって変換されたページ (->オリジナル) /