Question: Write a program that reads in 10 integers, appending each onto a list. It then displays the list from beginning to end using a loop

Write a program that reads in 10 integers, appending each onto a list. It then displays the list from beginning to end using a loop accessing each element via its index. Next, it displays the list from end to beginning using a loop, accessing each via a negative index. Finally, it displays the list from end to beginning, accessing the elements of the list without using indices. Hint: Use the pop() method.

Write a function that is passed two lists. Your function should concatenate the elements of the second list onto the first list, and then return the modified first list. Write a program that tests your function()

Programming Language: Python.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!