⊗pyPmBsVa 6 of 208 menu

Variables in Python

The basic concept of any programming language is variable. A variable is a container in which we can store some data, such as strings or numbers.

Each variable must have a name, which can consist of Latin letters, numbers, and underscores. In Python, we declare a variable by simply writing its name, and through the operator = we specify its value:

test = 1

Think of a name for the variable and write the following value into it:

'abc'

Write any two-digit number into a variable.

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