Question: Labo2 - Exercise - Reverse (1 point) Open reverse.py and complete the function reverse_words() according to its documentation. After completing this, write at least 5

 Labo2 - Exercise - Reverse (1 point) Open reverse.py and complete
the function reverse_words() according to its documentation. After completing this, write at

Labo2 - Exercise - Reverse (1 point) Open reverse.py and complete the function reverse_words() according to its documentation. After completing this, write at least 5 tests using pytest, and include them in test_reverse.py. You should be able to run these tests by just running pytest. The pipeline for this repo currently fails, as pytest cannot find any tests. Once you have written your tests, and implemented reverse_words() the pipeline should pass. 1 def reverse_words (string_list): 2 3 Given a list of strings, return a new list where the order of the words is 4 reversed 5 6 pass 7 8 if name main 9 print(reverse words ( ["Hello World", "I am here"])) 10 # it should print ['World Hello', 'here am I'] OWN

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!