What is the difference between * and **? Explain with an example.
Question :
What is the difference between * and **? Explain with an example.
* ( multiply) gives the multiplication of the two numbers or returns the string repeated that many times. For example,
2 * 3 gives 6.
'la' * gives 'lalala'.
** (power) returns x to the power of y. For example,
3 ** 4 gives 81 (i.e., 3 * 3 * 3 * 3 )