12/18 Printing out a list item by item in a function


I feel so dumb asking for help on this but it's legit driving me crazy... It's so dumb...

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

Thanks in advance


Show as subscript...



I'm going to sleep now... Thanks for the help


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