Sergei089 / python_ex

1 stars 1 forks source link

ex8.py #67

Closed Sergei089 closed 1 year ago

Sergei089 commented 1 year ago

изображение

formatter = "{} {} {}"

print(formatter.format(1, 2, 3, 4))
print(formatter.format("Раз", "два", "три", "четрые"))
print(formatter.format(True, False, False, True))
print(formatter.format(formatter, formatter, formatter, formatter))
print(formatter.format(
            "Спят в конюшне пони,",
            "начал пес дремать,",
            "только мальчик Джонни",
            "не ложиться спать!"
))