This is a list of all of the articles relating to the concept of variables.
This lesson is a little different. We want to show you some tips, that you can use to make programming just a little bit simpler.
In the last lesson we looked at how computers repeat a sequence of instructions. Something that programmers more commonly call a loop.
Now we want to look at a extension of the loop pattern to show you a quick way to loop a fixed number of times.
To learn what loops are and the pattern for repetition in Go programs
To introduce the concept of repetition and show how this can be used in computer programs.
To learn that repetition is more commonly called a loop.
To learn the different types of loops; to introduce the pattern for a loop that repeats while a condition is true.
The class will practice loops by adapting the previous timesquestion
program.
Creating these program will require the class to use the text editor (either Atom or LiteIDE) to create and save the source code file and the terminal/command line to run their program.
In the last two lessons we have looked at how computers programs make decisions.
Now we want to investigate how and why we want computers to repeat small parts of a computer program.
We will introduce the pattern for repetition or loops
as they are more commonly
known.
Computers are used to process data. All data is made up of numbers. Yes, really! Everything is just a bunch of numbers to a computer. These are the only things they understand.
We are going to explain how numbers are used in Go programs. Then we are going to show you how to do type sums in Go.