what the hell! is the input of >>>print (3*'7' | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what the hell! is the input of >>>print (3*'7'

29th Oct 2016, 10:42 PM
Karlel kilworth-sidhu
Karlel kilworth-sidhu - avatar
7 Answers
+ 9
777
29th Oct 2016, 11:44 PM
Aaron Sarkissian
Aaron Sarkissian - avatar
+ 6
Mathematically, 3×7 is 21. But in this case, 7 is treated as a string due to the inverted commas. So 7 is repeated 3 times as a string, thus 7-7-7.
30th Oct 2016, 1:34 AM
Kelvin
Kelvin - avatar
+ 5
missing right bracket. print(3*'7') result would be 777
30th Oct 2016, 1:25 AM
Shekhar Bahuguna
Shekhar Bahuguna - avatar
+ 1
string multiplied by a number: The answer would be 777
3rd Nov 2016, 11:02 AM
sai chaitanya
sai chaitanya - avatar
+ 1
number is integer
26th Nov 2016, 5:25 AM
HA.AFRATH SUJA
HA.AFRATH SUJA - avatar
+ 1
'777'
26th Nov 2016, 7:15 AM
Ahamed
Ahamed - avatar
+ 1
output is 777
27th Nov 2016, 5:16 AM
HA.AFRATH SUJA
HA.AFRATH SUJA - avatar