2 votes

How do I write strings to a file without adding a final line break?

I'm trying to write some variables in a csv, but I want each one to be written next to each other when I open it in excel. I just know that to jump the line is used `` and so it comes out in another cell below, but I want to know how I can pass the cell laterally.

Here's an example of when you type one down another:


Adrián Points 2335

Instead of separating it with line breaks, separate it with commas.

Using your own example:

You will see that when you open `` they will each be in a column.

This is basic. Then you can use even more advanced modules like csv.


HolaDevs is an online community of programmers and software lovers.
You can check other people responses or create a new question if you don't find a solution

Powered by: