I'm creating a string which is returned from the function. I need the string to list some values.
I have created a list which is joined at the end to make the complete string. I'm trying to add a new line on each iteration in the while loop the list is appended to.
while shiftAmount < 25: #Iterates through all 26 combinations producing a processed value each time.
shiftAndStore(shiftAmount)
shiftAmount = shiftAmount + 1
stringshift = str(shiftAmount)
outputCipherText.append("The Encoded / Decoded text on shift " + str((shiftAmount - 1)) + " is ")
outputCipherText.append(str(''.join(completePlainText)) + " \n")
completePlainText = []
output = [''.join(outputCipherText)]
Can anyone tell me why this is not working? looking at the output it shows the \n but doesn't execute it and make a new line.
list.