What is a Smart Contract?

What is a smart contract / smart contracts?A smart contract is code, and it is called smart because it can often do the tasks itself. …