Masi - 1 year ago 35

Python Question

What is the difference between the following codes?

**code1**

`var=2**2*3`

`var2=2*2*3`

I see no difference.

This raises the following question.

Answer

try:

```
2**3*2
```

and

```
2*3*2
```

To see the difference.

```
**
```

Is the operator for "power of"

In your particular operation 2 power of 2 yields the same as 2 times 2.