Python Forum

Full Version: How to print message after row value in the same line
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I am reading CSV files using readlines, and enumerate through columns. I print each row value, and some message.
print("INFO: " + f1_lines[i] + ":Fail")

but it printing ":Fail" in new line. How to print in the same line.
Please show us the minimal lines of your code to reproduce the error.
readlines returns lists on rows as strings with \n at the end.