Syntaxe et coloration — Français¶
Les conditions, boucles et opérateurs logiques utilisent le vocabulaire français tout en partageant la même sémantique avec les autres langues.
x est un entier
x = 3
Si x > 0 Et x < 10 Alors:
Afficher "positif"
Sinon Si x = 0 Ou x = -0 Alors:
Afficher "nul"
Sinon:
Afficher "négatif"
Fin
Pour i de 1 à 3 avec un pas de 1:
Afficher i
Fin
i = 0
Tant Que i < 3:
Afficher i
i = i + 1
Fin
Les identifiants Unicode sont acceptés nativement, quel que soit l’alphabet de la langue.
Types¶
| Types | Noms locaux |
|---|---|
integer |
entier, int, entiers |
float |
flottant, réel, reel, float, flottants |
string |
chaîne, chaine, string, str, chaînes, chaines |
boolean |
booléen, booleen, bool, booléens, booleens |
array |
tableau, liste, array, list, tableaux |
dictionary |
dictionnaire, dict, dictionnaires |
set |
ensemble, set, ensembles |
tuple |
tuple, n-uplet, tuples |