I am using python to run a loop to read an array and print the results. I can get the results to print but they come back like this. IWBBPB00210IWBBPA00065. When it should look like this
IWBBPB00210
IWBBPA00065
Here is my code.
with open('Count_BB_Serial_weekly.json', 'r') as lowfile:
low = json.load(lowfile)
low1 = low["total_serials"]
low3 = ""
low2 = low["serials"]
for i in range(len(low2)):
#print(low2[i])
low3 += low2[i]
print(low3)
When I originally printed low2[i] it would come back how I want but later on I have to send this in a message and in the message it would only send the last value from low2. I have tried adding '\n' to the end of low3 but this does not work.
How do I properly add this new line feed. Thanks for the help!
'\n'.