Programs need ways to communicate
Input is information coming into the program. Output is information going out of the program. A comment is a note for people reading the code; the computer ignores it.
A simple program can ask your name, remember the answer, and then greet you.