+ 13

Operators

x = 4 x *=3 print(x) What is the answer I probably will figure it out before anyone’s answers

9th Jun 2019, 7:20 PM
LIAM ADAMS
LIAM ADAMS - avatar
4 odpowiedzi
+ 14
Ans will be 12 , becase x*=3 means x=x*3 .
9th Jun 2019, 8:12 PM
Tonmoy Santra
Tonmoy Santra - avatar
+ 4
These are shorthand expression, like x=x+1 can be written x+=1, in your scenario x=x*3, 4*3=12.
9th Jun 2019, 8:53 PM
Prantik Sarkar
Prantik Sarkar - avatar
+ 1
x *=3 is equal to x = x * 3 So x = 4*3 . . Output: 12
9th Jun 2019, 7:31 PM
Ivan
Ivan - avatar
+ 1
x*=3 means x=x*3 therefore output is 12
16th Dec 2019, 10:07 AM
Arsildo
Arsildo - avatar