Question: I am just getting started with REST API and I have a few question. I am not sure exactly when it's best to use query parameters or path parameters or to send data in the body?

Right now I am designing a social media platform, and for example I don't know if when a user adds a comment, how should he use it? Is adding it in the request body the best option?

Please, also explain in general, not only for this example. Thank you!

Answer: 
If your string separates each element with a comma and a space you could pass `", "` to your `split` method like this:

```py
>>> s = 'name, 12345, Hello, \"12,34,56\", World'
>>> print(s.split(", "))
['name', '12345', 'Hello', '"12,34,56"', 'World']

```
You can try built-in `csv` module to parse the string:

```py
import csv
from io import StringIO

s = 'name, 12345, Hello, "12,34,56", World'

print(next(csv.reader(StringIO(s), skipinitialspace=True)))

```

Prints:

```
['name', '12345', 'Hello', '12,34,56', 'World']

```