local diccionario = {
["manzana"] = "Una fruta dulce y crujiente",
["naranja"] = "Una fruta cítrica y jugosa",
["platano"] = "Una fruta suave y dulce"
}
-- Recorrer el diccionario con un bucle for
for clave, valor in pairs(diccionario) do
print("La clave es: " .. clave .. ", y el valor es: " .. valor)
end
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter