May-08-2020, 05:13 PM
At line 7 your group is parsed into g as a list of strings such as
Line 8 is
['users', 'x', '100', 'kintaro,john,autossh,test']
Line 8 is
for ul in g[3]: #ul is userlineThis sets ul to the elements of g[3] one at a time. Since g[3] is a string, it sets ul to each of the characters. You want to split g[3], not loop on it.