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


#1

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


#2

Show as subscript...

x[i]

#3

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


#4

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