I need help on number 9


#1

On number nine, converting between symbols and strings, I put in this code,
strings = ["HTML", "CSS", "JavaScript", "Python", "Ruby"]
symbols = []

strings.each |s|
for s in strings
symbols.push(s.to_sym)
end
end

And it says that I have not declared symbols, could you guys tell me what to do and whether my code is incorrect?


#2

HI after the

strings.each...

it's missing the do


#3

Nevermind, I found the answer.


#4

I realized that a second before you posted thanks!


#5

By the way, since you're already looping over strings.each |s|, the for s in strings is unnecessary.
Code brevity!