Hello, can some one tell me how to out put the last item on a list
I'm trying to do a test task and it tells me that I need to out put the last item on a list, but I'm having problem, and that is that I have to out put the last item on a list that has to be created by an input. Because the information that came from an input is a random information a don't know how to out put the last item. Other problem that I have, is that from the input thy want to put information like this: 4 66 7 894 And with an input it just take one like just the first number not the others. I don't know if I explain my self in a right way or not, but if someone can help me it would be so helpful. By the way this is the test task: Write a program that takes a list as input and takes the last item out of that list. The list of entries can be of any size, remember that you can use negative indexes to index the lists.