Ad
  • Default User Avatar

    When I attempt to run the code, it says I failed. But when I test it, I passed all tests
    what is going on??? is there a bug in this problem?

  • Default User Avatar

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

  • Default User Avatar

    not sure if best practice, but you can use basic indexing:

    str = str[1..str.size-2]
    
  • Default User Avatar

    how do i delete a first index and a last index