I suppose it's a bug. Can help me?


#1



<link https://www.codecademy.com/courses/ruby-beginner-en-ET4bU/1/1?curriculum_id=5059f8619189a5000201fbcb>


It run correctly but the console puts undefined method 'each' for nil:NilC lass


Replace this line with your code. 

def array_of_10
  puts (1..10).to_a
end
for i in array_of_10 
    puts i 
end


#2

HI the instruction aske you to ...

Call the cubertino method in the editor, passing it an argument of 8.


#3

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

Sorry It's right here, in Parameters and Arguments I call the cubertino method in the edito rightly, passing it an argument of 8. But dosen't run:


def cubertino(8)
puts n ** 3

end


The problem is that in this link https://www.codecademy.com/en/courses/ruby-beginner-en-ET4bU/0/4?curriculum_id=5059f8619189a5000201fbcb says undefined method 'each' for nil:NilC lass


#4

About this code

def array_of_10
  puts (1..10).to_a
end
for i in array_of_10 
    puts i 
end

you don't need of the for in remove this part

for i in array_of_10 
    puts i 
end

and just call the function array_of_10


#5

Thank you, Im doing my best for the better progress. You're really nice people.


#6

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