Answer to Question #225508 in Python for Reclimet

Question #225508

Last half of List


This Program name is Last half of List. Write a Python program to Last half of List, it has two test cases


The below link contains Last half of List question, explanation and test cases


https://docs.google.com/document/d/12r-Wk4K7GMmpiGxHWymMhcXkUMBy8Okg/edit?usp=sharing&ouid=104486799211107564921&rtpof=true&sd=true


We need exact output when the code was run

1
Expert's answer
2021-08-17T12:55:53-0400
N=int(input())
lst = [int(N) for N in input().split()]
out=[]
i = N//2
for x in range (N):
	if x>=i and x<N:
		y=lst[x]
		out.append(y)
print(out)

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