Answer to Question #225506 in Python for Reclimet

Question #225506

List Indexing - 3


This Program name is List Indexing - 3. Write a Python program to List Indexing - 3, it has two test cases


The below link contains List Indexing - 3 question, explanation and test cases


https://docs.google.com/document/d/1F2ws8-9vz96_0wpYR82MqW1wejDjS2gf/edit?usp=sharing&ouid=104486799211107564921&rtpof=true&sd=true


We need exact output when the code was run

1
Expert's answer
2021-08-15T01:16:38-0400
n = int(input())
t = int(input())
l_n = []
l_t = []
for i in range(n):
	l_n.append(int(input()))
for j in range(t):
	l_t.append(int(input()))
for index in l_t:
	print(l_n[index])

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS