Question: # 1. Write a function to make a new list with the elements in reversed order. # If original_samples is [1,2,3], then this should return

# 1. Write a function to make a new list with the elements in reversed order.

# If original_samples is [1,2,3], then this should return a new_list [3,2,1].

# You may not use the Python reversed function, or original_samples[::-1].

# Loop over the items in the list and build up a new list in the desired order.

# This function has been started for you.

def make_reversed_samples(original_samples): new_samples = [] # start with an empty new list # Add code to make the function work as specified. return new_samples

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!