+ 1
[1,2,3,1,2,3,1,2,3] print in python
1 to 3 value in print 3 times
4 ответов
+ 6
Print([1,2,3]*3)
Asterik *operator used for rep.
+ 4
Jeel Bhalodiya
Attached is 5 options ranging from simple to silly.
You could create a competition asking for people to output this in a unique way, which would involve obfuscation, binary, cyphers & all sorts of other fun trickery.
https://code.sololearn.com/cR8I55SJDb6u/?ref=app
+ 2
You can print repetitions of a string, list, etc with the * operator. Example: print(myvar * 2)
+ 2
Try this :
List = [1,2,3]
List = List*3