[Solved] How can I divide the values one by one in python? [closed]

[ad_1]

Add text to a list and print it.

Here I am adding the text to res list and printing it.

res = []
for item in data:
    text = item.get_text().strip().replace(' ', '')
    res.append(text)

# printing the res list
print(res)

2

[ad_2]

solved How can I divide the values one by one in python? [closed]