A computer program is a set of instructions that tells the computer what to do. These programs are written in programming languages such as Python, Java or C++ and can be used for various purposes like data processing, gaming, simulations, etc. The purpose of writing these programs could vary from solving mathematical problems to creating animations or designing websites.