This is the simplest correct Karel program. All valid Karel programs must minimally have these 5 lines.
BEGINNING-OF-PROGRAM BEGINNING-OF-EXECUTION turnoff END-OF-EXECUTION END-OF-PROGRAM
This program does nothing but turn Karel off. It is a good sample because it concisely shows the structure of a valid Karel program.
Go to the first, previous, next, last section, table of contents.