Try it out 12/18


#1


https://www.codecademy.com/courses/ruby-beginner-en-XYcN1/2/5?curriculum_id=5059f8619189a5000201fbcb

Oops, try again. It looks like your iterator syntax isn't quite correct--check the Hint if you need help.


My current code:

x = [3, 5, 7]
def print_list(x):
for i in range(0, len(x)):
print x(i)
print print_list(x)

Thank you iin advance
brianna_03


#2

@brianna_03,
Maybe you will find the answer in
https://discuss.codecademy.com/t/12-18-printing-out-a-list-item-by-item-in-a-function/12019/8


#3

thank you so much :smile:


#4

none of them work at all


#5

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