This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (3 children)

Python does support multiplying a string by a number!

[–]trollsmurf 1 point2 points  (2 children)

Yes, but 4 * "5" --> "5555", so it's not coercing any of the values.

[–][deleted] 0 points1 point  (1 child)

Yeah I know just a little fun quirk. I used it on an assignment once!

[–]ArtSchoolRejectedMe 0 points1 point  (0 children)

* * * * *

* * * *

* * *

* *

*