The curious case of the unread 'M'


#1

https://www.codecademy.com/courses/ruby-beginner-en-L3ZCI/3/4?curriculum_id=5059f8619189a5000201fbcb#


I did everything asked of me, yet apparently, the 'M' doesn't register.

ERROR:
Oops, try again. Make sure to put your capital M in quotes, like this: 'M'

I just don't get it. I did put the M there, but it just isn't being read somehow.

first_half = lambda do |key, value|
    crew.select value < "M"
end

And before you ask, yes, I also still got the rest of the code needed. I'ts just the M that's the problem.


#2

(No need to do anything with the crew hash yet.) <= From instructions

first_half = lambda { |k, v| v < "M" }


#3

I have no idea of what went wrong (but I do thing it has something to do with the unnecessary .select), but thanks anyway.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.