![]() |
How to print message after row value in the same line - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: How to print message after row value in the same line (/thread-23014.html) |
How to print message after row value in the same line - SriRajesh - Dec-07-2019 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. RE: How to print message after row value in the same line - ibreeden - Dec-07-2019 Please show us the minimal lines of your code to reproduce the error. RE: How to print message after row value in the same line - perfringo - Dec-07-2019 readlines returns lists on rows as strings with \n at the end. |