Can someone help me with iteration here


#1



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

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

Add your code below!

symbols = []

for s in strings
strings.to_sym.push(symbols)
s+=1
end

The point is too convertt them to symbols and then place them in new array this is what i did and it wont work.

Replace this line with your code.


#2

@codecrimson

The instructions

Your code

We are not currently taking python's course....

Remember how .each work for iterating values:

arrayName.each do |arguments|
  #the code gets run here
end

Next, inside your .each, you should use for loop to iterate over strings as s. You will use push method on symbols with the argument s.to_sym.