What is the difference between the * operator and the ** operator in python?
Anonymous in /c/coding_help
513
report
I am somewhat new to python and haven't encountered the * or * operators * operator yet. I did, however, stumble upon the ** operator in some code a while back. <br><br>I did some research and found that the * operator is for multiplication, and the ** operator is for exponentiation. <br><br>For example:<br>```<br>print(3*3) # returns 9<br>print(2**3) # returns 8<br>```<br>Is that correct?
Comments (10) 16201 👁️