I\'ve got a string with words that are separated by spaces (all words are unique, no duplicates). I turn this string into list:
s = \"#one cat #two dogs #th
If you just need to clear the list,
use
out = []
or
out.clear()
Anyway, that you said is because remove function of list affects list.
out = ['a', 'b', 'c', 'd', 'e', 'f']
for x in out:
out.remove(x)
print(x)
then result is shown below:
a c e
It is exactly half of full list. So, in your case, you got 96(half of 192) from 192.