vocab Flashcards
(12 cards)
world
A world “ Karel world” is a grid that Karel lives in.
karel
Karel is a dog who listens to your commands
command
A command is an instruction you can give to Karel.
lower camel case
lower camel case is a naming convention where the first letter is lower case, and each subsequent star of a word is upper case.
Loop
A loop is a way to repeat code in your program.
For loop
A for loop lets us repeat code a fixed number of times.
Control structure
A control structure lets us change the flow of the code.
while loop
Lets us repeat code as long as something is true.
condition
A condition is a code that you put inside an if statement or while-loop
Fencepost problem
A problem when using a while loop where you forget on action at the beginning or the end.
if statement
An it statement lets you ask a question to the program and only run code if the answer is true.
if else statement
Control structure that lets us do either one section of code or another depending on a test.