Did i do this right? i think i converted to symbols but not the right way


#1

https://www.codecademy.com/en/courses/ruby-beginner-en-Qn7Qw/1/4?curriculum_id=5059f8619189a5000201fbcb

the link is above heres what i put.

symbols = []

strings.each do |s|

if strings.include?("HTML")
symbols.push(s.to_sym)
print s
end
end


#2

Err... Not the right way.

Check your line here:

You should have it instead as:

strings = ["HTML", "CSS", "JavaScript", "Python", "Ruby"]

# Add your code below!
 symbols=[]
     strings.each do |s|
          s=s.to_sym
          symbols.push(s)
     end 
 puts symbols