Answer the question
In order to leave comments, you need to log in
How to join lines?
For example, I have the following command
Print('hello')
Print('world')
How to connect them? I know this can be written in one line, but how to connect if so?
Answer the question
In order to leave comments, you need to log in
There are several ways:
print('Hello ' + 'world') # 1-й способ
print('Hello', 'world', sep=' ') # 2-й способ
# 3-й способ
print('Hello', end=' ')
print('world')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question