⊗pyPmBsSt 21 of 208 menu

Strings in Python

As mentioned earlier, data can have different types. One of the types is numbers, which we have already studied a little. Let's now move on to strings.

Strings are created using quotes:

txt = 'abc' print(txt) # 'abc'

Quotation marks can be not only single, but also double:

txt = "abc" print(txt) # 'abc'
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