Why?


#1

https://www.codecademy.com/courses/python-beginner-nzzVa/3/1?curriculum_id=4f89dab3d788890003000096#

n = [3, 5, 7]

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

#2

why what? Please elaborate your question


#3

whats wrong with the code?
seems to be correct...


#4

if you have an indention error and post without markup/format its difficult to troubleshoot

the print should nested inside the for loop, so it should have more indent then for


#5

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