Ad
  • Custom User Avatar

    Yep you are correct. I remember seeing it used in the solutions and thought to myself DOH.

  • Custom User Avatar

    I figured it out. I was iterating through a list and making modifications to that list which were producing incorrect list.index numbers. That was a beat down but hopefully I learned my lesson.

  • Custom User Avatar

    No it's difinately returning strings and integers with the string numbers before the ints. Oh I was misunderstanding the test. I thought the first array was the test and the second was the answer. Let me revisit my code. Thanks for the help.

  • Custom User Avatar

    So I have to say that this kata has been pretty challenging for me which I really have enjoyed. I got stuck and I had to completely rethink my logic which pissed me off and made my function better. With all that said I can't figure out why I'm failing the following test.

    Can someone explain why list of strings should return a list that now contains integers?

    ['a', 'b', 'c', '1', '1', '2', '2', '2', '3', '3'] should equal ['a', 'b', 'c', 1, '1', 2, '2', '2', 3, '3']

    This is what my function returns which I feel is correct based on the instructions.
    ['a', 'b', 'c', '1', '1', '2', '2', '2', '3', '3']

    Please help.

    Thanks.

  • Custom User Avatar

    All my tests pass except this one. I don't understand why False is in the answer. The instructions don't say anything about boolean values. Am I missing something?

    Testing for 6, 8, 8, 0, e, False, j
    It should work for random inputs too: [6, 8, '0', 'e', 'j'] should equal [False, 6, 8, '0', 'e', 'j']