I'm connecting access db and fetching values. In one of the column values are stored like
abc|def|ghi|xyz.
Need to replace | with space and store in array.
I'm trying below code but each character is stored in array like "a b c ..."
for row in cursor.fetchall():
names = row[1]
names = names .replace("|", ",")
namesarray = []
namesarray = names
for fullname in (namesarray):
--do something --
names=names.split("|")instead of replacing with comma?print("abc|def|ghi|xyz".split('|'))