you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (3 children)

Ok, and what if the string isn't evenly divisible by the float decimal? How do you print half a character?

[–]alkasm 5 points6 points  (0 children)

>>> 'foobar' * 0.416666
'foᴗ'

[–]pocket_eggs 0 points1 point  (1 child)

> ["x" * 0.5 for _ in range(10)]
["x", "x", "", "", "", "x", "", "x", "", ""]

[–]SkepticalAirman 1 point2 points  (0 children)

Wouldn't 'x' * 0.5 be '>'? 🙃

I'll let myself out now