N
N
NoName22813372020-07-30 16:11:01
Python
NoName2281337, 2020-07-30 16:11:01

How to change a line?

Like this:

j = """A
    Б
    С"""

Turn it into this:
"ABC"
And how to this:
"А\nB\nC

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Leonov, 2020-07-30
@NoName2281337

''.join(j.split())

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question