Please enable JavaScript to use CodeHS

Intro to Programming with Karel and micro:bit

Lesson 8.3 How to Indent Your Code

Description

Indentation is especially important when using multiple loops, functions, and if statements to show the structure of the code. The indentation gives you a good visual way to see what commands are inside vs. outside of a loop or if statement.


Objective

Students will be able to…
* Explain why it is important to indent code
* Identify proper indentation
* Modify a program to have proper indentation
* Write programs with proper indentation