Define a function. / Sumita Arora Solution / By Sanjay Kumar A function is predefined set of commands that performs a specific task and may return a single value.