letshwao
Converts a character-code number into a single character.
Every character in a computer has a number of its own. letshwao(65) is "A", letshwao(66) is "B", and letshwao(97) is "a".
Given text holding a number — say letshwao("65") — it is read as a number first, and you get "A" again.
Given a list, it returns a list of characters. The function that goes the other way is paloYaLetshwao.
Syntax
Section titled “Syntax”letshwao(boleng)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
boleng | palo | A character-code number. Text holding a number, and a list, are both accepted. |
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 400);
bokamorago(220);
tlogelaMothalo();
diri x = 60;
gopheta (diri khoutu = 65; khoutu < 70; khoutu = khoutu + 1) {
kwala(letshwao(khoutu));
tlatsaMmala(khoutu * 3, 120, 200);
kgolokwe(x, 200, 60);
x = x + 70;
}
}tiro setaLoeto() {
thalaKanefase(400, 400);
bokamorago(220);
tlogelaMothalo();
diri dikhoutu = [66, 79, 80, 65];
kwala(letshwao(dikhoutu));
tlatsaMmala(200, 100, 40);
khutloTharo(200, 80, 60, 320, 340, 320);
}