What is the output of this code? >>> x = 4 >>> x *= 3 >>> print(x) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 4

What is the output of this code? >>> x = 4 >>> x *= 3 >>> print(x)

help

7th Oct 2016, 9:03 AM
suh dude
12 Answers
+ 8
12
11th Mar 2019, 4:39 PM
Natalia
Natalia  - avatar
+ 2
12
15th Sep 2020, 6:33 AM
Divya Peddapalyam
Divya Peddapalyam - avatar
+ 1
12
12th Oct 2016, 6:47 PM
Pramod Lagare
Pramod Lagare - avatar
+ 1
12
31st Aug 2019, 10:19 AM
Selena Samra
+ 1
answer is 12
6th Apr 2020, 7:05 AM
Waled Moumari
Waled Moumari - avatar
0
12
31st Jul 2021, 2:38 PM
EMMANUEL IMANIRAKIZA
0
how did you get that? if x=4 the you do (4)*=3 wouldnt that just be three? or do you somehow just multiply them
9th Sep 2021, 7:49 PM
Seth Elder
Seth Elder - avatar
0
12
17th Jul 2022, 7:59 PM
wessam lahmod
0
X=[2,4],x=x*3,print(x[3])
23rd Sep 2022, 5:48 AM
DRAJIRU SHARON
DRAJIRU SHARON - avatar
0
No it's totally wrong... Answer is 4
10th Nov 2022, 9:16 PM
DEVADHARSHINI S
0
ans is 12
13th Jan 2023, 4:10 PM
Engr.Ayesha Liaqat
Engr.Ayesha Liaqat - avatar
- 3
12
3rd Feb 2021, 3:33 AM
David I