Please wat is the output of this string <<<{3*'7'} | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Please wat is the output of this string <<<{3*'7'}

strings

27th Mar 2020, 9:31 AM
onoja favour
onoja favour - avatar
2 Answers
+ 2
It gives 777 Integer*string=integer times string edited: sorry I just ignored {} so correct output is {'777'}
27th Mar 2020, 9:34 AM
Muhammad Bilal
Muhammad Bilal - avatar
+ 2
It means that you have a set identify by {}. The string '7' is written 3 times and the out is {'777'}
27th Mar 2020, 9:37 AM
Elhadji Mama GUENE
Elhadji Mama GUENE - avatar