0
need help plz
What is the output of this code? >>> x = 4 >>> x *= 3 >>> print(x)
2 Réponses
+ 5
Output: 12
In line 1, the value 4 is assigned to x.
In line 2, x *= 3 is the same as x = x * 3, which becomes: x = 4 * 3, and then x = 12.
print(x) just prints x (or 12).
+ 1
12.
Because, x*=3 means x=x*3