What context can I use each word in?
Learn when and how to use these words with these examples!
code
Example
The programmer spent hours writing code to solve the complex problem. [code: noun]
Example
She enjoys coding because it allows her to be creative and solve problems. [coding: gerund or present participle]
program
Example
I need to run a program to analyze the data and generate a report. [program: noun]
Example
He is studying computer science to learn how to program and create his own applications. [program: verb]
Good things to know
Which word is more common?
Program is more commonly used than code in everyday language. Program is a versatile term that can be used to describe software applications, while code is more specific to the written instructions themselves.
What’s the difference in the tone of formality between code and program?
Both code and program can be used in formal and informal contexts. However, code may have a more technical and specialized connotation, making it more commonly used in formal settings.