✍️ Ton code LAZARUS
1
🖥️ Console
laz nom = "Ladji" laz age = 25 age = age + 1 vox("Salut", nom) laz x = nombre(demand("Un nombre ? "))
kan age >= 18 { vox("Majeur") } sinon kan age >= 13 { vox("Ado") } sinon { vox("Enfant") } # logique : et / ou / non
tanke x > 0 { x = x - 1 } pou i dan 1..10 { vox(i) } # kase = break, swiv = continue
fonk carre(x) { rend x * x } vox(carre(8))
laz l = [1, 2, 3]
vox(l[0], taille(l))
ajoute(l, 4)
l[1] = 99
vox(tri(l))
klas Chien herite Animal { fonk init(moi, nom) { moi.nom = nom } fonk parler(moi) { vox(moi.nom, "dit wouf") } } laz rex = Chien("Rex") rex.parler()
laz d = { "nom": "Ladji", "age": 25 } vox(d["nom"]) d["pays"] = "France" pou cle dan d { vox(cle) } # cles(d) valeurs(d) contient(d, x)
vox demand nombre texte
taille ajoute retire hasard
arondi majus minus koupe tri tip
v2.0 : cles valeurs contient
colle remplace lis_fichier
ecris_fichier ajoute_fichier
fichier_existe
v3.0 : vox_couleur stylise
efface_ecran · raccourcis += -=
v3.1 : toile fond trace_ligne
trace_rect rect_plein trace_cercle
cercle_plein trace_texte sauve_dessin
v4.0 : "Salut {nom}" · echoue
essaie { } rattrape err { }
v5.0 : garde x = 0 (se souvient !)
ralenti(0.5) · #langue: anglais/francais
v6.0 : chaque_image(ma_fonk)
touche_pressee("droite") arrete_jeu()
joue_son("piece") · 30 images/s
v11 : #langue: python → du VRAI
Python, erreurs en français !
v10 : qubits superpose intrique
mesure probabilites → QUANTIQUE !
v8.0 : dis("texte") → il PARLE !
🔗 Partager → ton code en lien
v7.0 : titre bouton champ etiquette
valeur_de(id) change_texte(id, txt)
efface_interface() → des APPLIS !
# valeurs : vrai faux walu