Write a function power (a,b) to calculate the value of 'a' raised to 'b'.
Hello candidate,
A mathematical function refers to a relation of numbers from one set to another, with a specific relation satisfy both of them.
There can be infinite number of functions such as (2,x^2), where we can take the value of 2 as a, and the value of b can be taken as x^2.
similarly can also formulate other equations with any number of values satisfying this relation.
Hope it helps!!