Might sound stupid, but 1/18 please!


#1

guys I appreciate the help and I may sound a bit stupid at this stage but I cant do 1/18 so if you could give me the answer to carry on then id be really gratefull, thanks!


#2

Use the print command, so your answer will look like "print n[x]".
X in this context denotes the list index, so your possibilities are 0, 1, 2 since there are only 3 items in the list. Out of 0, 1, and 2, whichever one is the second one is gonna be what you're looking for.


#3

just hit the "save and submit" button


#4

Yep xD
Or there could be a load of bugs


#5

here you go:

n = [1, 3, 5]
print n[1]

Hope this helps!


#6

print n[1]

It should be on the line 2, ONLY.


#7

Hey guys I'm stuck on 18, too and reading this has just confused me even more! Here is my code can you show me what I'm doing wrong?

n = [3, 5, 7]

for i in range(0, len(n)):
print n[i]

def print_list(x):
print x[0]

print print_list(n)


#9