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 )



CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad