Before learning how to program computers, take a moment to understand the computer hardware architecture basics.
The Central Processing Unit
The CPU can execute commands extremely fast. The catch is, it has to be told what to do, or it won’t do anything.
The Main Memory
The main memory stores information that the CPU can retrieve extremely fast. Anything stored here will vanish when the computer is turned off.
The Secondary Memory
This stores memory but it is very slow. We need it because it can store memory even without power. Examples of this are a hard drive, USB stick, or disk drives.
The network can serve as remote secondary memory, because information is stored over the network that you can retrieve.
The Input and Output Devices
This could be a mouse, keyboard, monitor, speaker, joystick, etc. You use these to interact with your computer.