- 3

What is the answer? >>> x = " a" >>> x *= 3 Print(x)

19th Jul 2016, 1:13 PM
Sam
Sam - avatar
26 Answers
+ 15
Sam, when you *= a string by a number, it wants you to repeat the exact string, that number of times So word="text" word *=5 Outputs texttexttexttexttext Or "text" five times over
19th Jul 2016, 8:16 PM
Meghan Waring
Meghan Waring - avatar
+ 6
I guess: a a a
19th Jul 2016, 1:15 PM
Santosh kumar
+ 3
a a a
19th Jul 2016, 5:08 PM
Misha Hack
Misha Hack - avatar
+ 3
aaa
20th Jul 2016, 8:29 AM
Eloy Aguilar
Eloy Aguilar - avatar
+ 2
" a a a" without quotes.
19th Jul 2016, 7:16 PM
Ankit Gangwal
Ankit Gangwal - avatar
+ 2
The answer to your question is: a a a
12th Aug 2019, 2:23 PM
Gwendolyn Phillips de Ashborough
Gwendolyn Phillips de Ashborough - avatar
+ 1
Thanks to Kumar
28th Jun 2020, 6:27 PM
Faith Mundi
Faith Mundi - avatar
+ 1
The ans is aaa
28th Jun 2020, 6:28 PM
Faith Mundi
Faith Mundi - avatar
+ 1
aaa completely correct answer
26th Dec 2021, 10:52 AM
Not Dr. Ujjwal
0
it's:a a a
2nd Sep 2016, 6:14 PM
arun kumar
arun kumar - avatar
0
aaa
17th Sep 2016, 1:26 PM
TUSHAR RANJAN DAS
TUSHAR RANJAN DAS - avatar
0
Repeat it three times
12th Aug 2019, 4:09 PM
Sayed Murtaza
Sayed Murtaza - avatar
0
aaa is the answer
24th Jan 2020, 4:47 AM
THILAGAVATHI J SACAS
THILAGAVATHI J SACAS - avatar
0
answer is aaa
6th Apr 2020, 7:06 AM
Waled Moumari
Waled Moumari - avatar
0
confused screaming
15th Jul 2020, 9:09 AM
wolfishmass
0
aaa
19th Aug 2020, 9:52 AM
Doris
0
>>>X=10 >>>Y=3 >>>Print(x%y)
13th Oct 2020, 1:05 PM
Ruben Mario Cusi Menchaca
Ruben Mario Cusi Menchaca - avatar
0
aaa
22nd Apr 2021, 11:42 PM
William
0
x = "a" x *= 3 so a * 3 result is... aaa
4th Oct 2022, 11:08 AM
garima
garima - avatar
- 1
aaa
3rd Jan 2017, 6:47 AM
pradeep
pradeep - avatar