Naming Rules
There are several rules for naming variables in Python. These are the following:
- A variable name must start with a letter or the underscore character, which means a variable name can not begin with a number.
- A variable name may contain only English letters, numbers, and underscore characters.
- Variables’ names are case sensitive, i.e.,
Chapter
,chapter
, andCHAPTER
will be considered three different objects by Python.
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 2
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Suggested prompts:
Kysy minulta kysymyksiä tästä aiheesta
Tiivistä tämä luku
Näytä käytännön esimerkkejä
Awesome!
Completion rate improved to 4
Naming Rules
Pyyhkäise näyttääksesi valikon
There are several rules for naming variables in Python. These are the following:
- A variable name must start with a letter or the underscore character, which means a variable name can not begin with a number.
- A variable name may contain only English letters, numbers, and underscore characters.
- Variables’ names are case sensitive, i.e.,
Chapter
,chapter
, andCHAPTER
will be considered three different objects by Python.
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 2