Please enable JavaScript to use CodeHS

Intro to Programming with Karel the Dog (Español)

Lesson 3.1 Comentando Tu Código

Description

Comments give notes to the reader to explain what your code is doing. Two types of comments that can utilized are preconditions and postconditions. Preconditions are assumptions we make about what is true before a function is called in our program. Postconditions are what should be true after a function is called in our program.


Objective

Students will be able to…
* Explain the preconditions and postconditions of a function
* Create clear and readable comments in their code that help the reader understand the code
* Explain the purpose of comments