Computer Science, asked by JNW, 1 month ago

Write a program in python to insert ten friends name in a list, then print 3rd, 5th and 9th value from the list (using data structure)​

Answers

Answered by shaikandshaik11428
1

Explanation:

q=[]

for i in range(10):

a=input('enter the name of your friend '+str(i+1)+' ')

q.append(a)

print(q[2],q[4],q[8])

I think I might be right

Similar questions