Question: PYTHOn 3 PLEASE COMPLETE CODE: #COMMENTS AFTER EACH STEP APPRCIAtED Write a function my_reverse() that takes in a string and returns the reversed string, by
PYTHOn 3
PLEASE COMPLETE CODE:
#COMMENTS AFTER EACH STEP APPRCIAtED 
Write a function my_reverse() that takes in a string and returns the reversed string, by using a stack or a queue. Again you MUST use a stack or a queue for this problem, regardless of if the tests say you passed or not.
You can copy+paste the implementation of the Stack or Queue (depending on what you use) from the lecture slides.
Example
my_reverse('hello') returns 'olleh'
1 def my_reverse(string): Problem Write a function my reverse) that takes in a string and returns the reversed string, by using a stack or a queue. Again you MUST use a stack or a queue for this problem, regardless of if the tests say you passed or not. You can copy+paste the implementation of the Stack or Queue (depending on what you use) from the lecture slides. Example my reverse( 'hello) returns 'olleh
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
