Ad
  • Custom User Avatar

    spoke == 115eokp that's correct, read the description again.

    • The first letter needs to be converted to its ASCII code.
    • The second letter needs to be switched with the last letter
  • Custom User Avatar

    yup: puts input at the beginning of your function (or puts input.to_s if it's an iterable)

  • Custom User Avatar

    I'm getting a STDERR
    main.rb:10:in []=': no implicit conversion of nil into String (TypeError)
    Question: is there a way to see the test case that it's failing on, so that I can try to fix this?

    Coding in Ruby

  • Custom User Avatar

    assert.strictEqual(encryptThis("The more he saw the less he spoke"), "84eh 109ero 104e 115wa 116eh 108sse 104e 115eokp");

    above
    spoke == 115eokp incorrect

    spoke == 115ekop correct

  • Custom User Avatar

    nice. Much better than mine