This is a list of all of our lessons. The newest lessons are at the top of the list.
Hello and welcome to GopherCoders.com.
Do you want to learn to program a computer? If you answered YES you have come to the right website. Follow along with us and let us introduce you to the world of computer programming.
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
In the last lesson we introduced the concept of selection. Selection is how a computer program makes a decision.
In this lesson we want to extend the concept to selection to show you how a computer program can make a choice between two or more alternatives.
In the last lesson we introduced the concept of keyboard input and showed you how the input can be stored in a variable.
But what if you wanted the computer to make a decision, based on what you had typed? How do you do this?
In this lesson we are going to show you how you can tell a computer program to
make a decision. We will introduce the pattern for
if statements as selection
is more commonly known.
In the last two lessons we introduced variables. Now we are going to put variables to work.
In this lesson we are going to show you how to use variables to remember what you have typed at the keyboard. We will introduce the pattern for going this.
In this lesson we are going to introduce variables. Computer programs use variables to remember things. Think of a word processor. The computer has to remember the words that you type. The word processor program uses variables for this.
We are going to show you the rules for variables and the patterns you need to use them in your programs.
In the last lesson you learned what a string was and the pattern that all strings must follow in Go.
In the last lesson we showed you how to use numbers in your programs. Now we want to talk about letters and words.
You saw in the last lesson how to do simple sums using Go. Now we want to show you that sums in Go follow the same mathematical rules that you already understand.
Maths is a universal language, even for computers.
Lastly we are going to show you the pattern you need to print a sum and its answer to the screen.
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.