Identifiers

Identifiers are the names you give to variables, functions and objects.

Valid names#

They can include letters (a-z, A-Z), digits (0-9), underscores (_) and Spanish characters like ñ or accents.

my_variable
current_year
value_2025
header
Digits at the beginning

An identifier cannot start with a number. 2value is not valid; value_2 is.

Uppercase and lowercase#

DinoCode does not distinguish uppercase in identifiers. These three lines do the same thing:

NAME = "Ismael"
print name
print NAME
print Name
Convention

Choose a style (for example snake_case) and keep it in your project so the code is easy to read.

Reserved words#

You cannot use them as identifiers because they have a special meaning in the language.

if elif else while for return break continue true false none nan infi and or not in as is