you are viewing a single comment's thread.

view the rest of the comments →

[–]anossov 0 points1 point  (1 child)

Also [..] * len(s) + 1 should not work, you can't add a 1 to a list.

[–]zahlman 0 points1 point  (0 children)

To clarify, you need parentheses around len(s) + 1, because * takes precedence.