⊗pyPmBsMS 27 of 208 menu

Multiline Strings in Python

In Python, strings can be wrapped, making them multi-line. To do this, we write the strings inside single quotes placed at the beginning and end:

print(''' 1 2 3 ''')

You can also use double quotes:

print(""" 1 2 3 """)

Given a variable:

txt = ''

Write your first name, last name, and patronymic name into this variable so that they are on different lines.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline