Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Wow! Brilliant. Had to laugh when I saw the one-line solution appear on my screen.
    Recognized the asterisk syntax from unpacking tuples and multiple function
    arguments (but I repeat myself!)... it just never occurred to me it could be used
    with other iterables as well. How silly of me!

    To those who think this should be voted as Clever rather than Best Practices, isn't
    this elementary Python syntax? We should all be familiar with it. Look how much
    screen space it just saved.