+ 1
what the hell! is the input of >>>print (3*'7'
7 Answers
+ 9
777
+ 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.
+ 5
missing right bracket. print(3*'7')
result would be 777
+ 1
string multiplied by a number:
The answer would be 777
+ 1
number is integer
+ 1
'777'
+ 1
output is 777