You may be wondering, How exactly does a program, or code, work? Well, as I said before, it is almost like a set of directions that the device follows. For example, I can write code telling the computer to say "Hi _(name)", depending on the name of the person's account. Therefore, when a girl named Charlie logs in to her account, the computer will say "Hello Charlie".
Here is the code, do not worry if it seems complicated
However, most of the code that is written is a lot more complicated then that example. Many programs use a concept, called conditionals, that will produce a certain result depending on a situation. An example of this can be signing into your account, like before. If you enter an incorrect password, the computer will not unlock. On the other hand, if you enter the correct password, the computer will open- the computer will only unlock on the condition that the correct password is entered; hence the concept of conditionals.
Let's see if you can use these concepts and try and make a real world version of code, but let's start with learning the basics because this is the first lesson.