Answer to Question #245121 in Python for Raju

Question #245121

Last half of List

You are given an integer N as input. Write a program to read N inputs and print a list containing the elements in the last half of the list.


1
Expert's answer
2021-10-04T07:51:45-0400
N = int(input())
numbers = input()
listNumbers = numbers.split(' ')
print(listNumbers[int(N/-2):])

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