Question: Forward and Backward Write an iterative function IN PYTHO fwd .bwdCS) that takes an input string, S, as input, and returns a string that contains
Forward and Backward Write an iterative function IN PYTHO fwd .bwdCS) that takes an input string, S, as input, and returns a string that contains s forward, then backward. Here are some example inputs and expected outputs: >>>fwd..bwdC'hello') helloolleh' >>>fwd.bwdC'CS) CSSC >>>fwd..bwd >>> fwd..bwdC'A) For this problem, as for all others, you must use a loop (not recursion). You also may not use Python's support for a negative "stride" in slicing a sequence (.e., you cannot use SE:-1] or similar)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
