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
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])
Comments
Leave a comment