Skip to content

1. Counting on You

Note: In this problem, you’re asked to enter some APL code, including an APL symbol and the data (text or numbers) given to it. Your code will be tested by the APL Challenge system to check whether it gives the correct answer and uses the methods described below.

In APL, a text is a list of letters and other symbols and must be between single quotes ( ' ). For example, 'AB-CD' will give a result that looks like AB-CD.

The function (Tally) tells you how many letters there are in a text. It looks a bit like a tally mark. For example, ≢ 'DYALOG' gives 6, because there are six letters in the DYALOG. Similarly, ≢ 'APL' gives 3, because that text has three letters.


Write some APL code that gives the number of letters in the text 'HELLO'. The result should be 5.