Skip to content

Оператор вывода print

В print() можно вводить всякие \n, \t (и не только) для перехода на следующую строку и таба соответственно.

Python
>>> poem = '''Boys and girls, come out to play.
    The moon doth shine as bright as day.'''

>>> print(poem)
Boys and girls, come out to play.
The moon doth shine as bright as day.

>>> print(poem, sep='', end='')
Boys and girls, come out to play.
The moon doth shine as bright as day.>>>


python