0

Why in python this code print ('17 * 87'*10) does not output 10 17*87 in the playground it outputs that 17*8717*...*87

For example if we write that print('1787'*10) it outputs 10 1787 but in the above code it doesn't include 17*87 and also output 8717

12th Oct 2019, 6:07 PM
Hasan Anorov
Hasan Anorov - avatar
4 Answers
+ 2
Khasan Anorov Actually it did. It does not automatically print spaces between 87s and 17s, so 8717 were printed. I tried to give a hint that: '17 * 87' + '17 * 87' equals: '17 * 8717 * 87'
12th Oct 2019, 6:23 PM
Seb TheS
Seb TheS - avatar
+ 1
Oooo yes 😄😄 You bet thanks a lot
12th Oct 2019, 6:30 PM
Hasan Anorov
Hasan Anorov - avatar
0
What is '17 * 87' + '17 * 87' ?
12th Oct 2019, 6:12 PM
Seb TheS
Seb TheS - avatar
0
If i am not mistaken as the rule Print ('17*87'*10) outputs 10 17*87 but it didn't it
12th Oct 2019, 6:19 PM
Hasan Anorov
Hasan Anorov - avatar