Ahadu 2.0
አማርኛ

Your first program

ጻፍ, text, and comments

The first program anyone writes in a new language shows something on the screen. In Ahadu that is a function called ጻፍ — "write".

Open in playground This output was verified at build time
ሰላም ዓለም!

Press Run. Then change the code and run it again.

Text

Anything between quotation marks " is text. Text can hold any characters at all.

Open in playground This output was verified at build time
አዲስ አበባ
Addis Ababa
፩፪፫

Each ጻፍ writes on a new line.

Writing more than one thing

ጻፍ takes more than one value. They are separated by ፣, the Ethiopic comma.

Open in playground This output was verified at build time
ስም፦ አበበ

A space is put between them for you.

Comments

A line starting with # is a comment. The computer skips it; it is there for people.

Open in playground This output was verified at build time
ይህ ግን ይሄዳል

Comments are for saying why the code is the way it is.

Exercise

Write a program that prints your name and your city on two lines.

Show the answer
Open in playground This output was verified at build time
ስም፦ አበበ
ከተማ፦ አዲስ አበባ