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 )



Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad