What is the difference between 2 ** x and 2 * x? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the difference between 2 ** x and 2 * x?

4th May 2017, 6:38 AM
#Phootpritz
#Phootpritz - avatar
3 Answers
+ 8
2**x is 2 to the power of x 2*x is 2 multiplied by x
4th May 2017, 6:46 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 5
2 ** x means 2 to the power of x and 2 * x is a standard multiplication. Example: x = 3 2 ** x = 8 2 * x = 6
4th May 2017, 6:46 AM
Jeroen
Jeroen - avatar
+ 1
thanks for the answers
5th May 2017, 4:29 AM
#Phootpritz
#Phootpritz - avatar