For python please Write a function that when passed a string
For python please.
Write a function that when passed a string, returns a string containing each letter in reverse order separated by a space (e.g., reverse_str(\"hello\") rightarrow\" o 11 e h\")Solution
#Reverse a null terminated string def reverse(a,b): temp=a a=b b=temp return (a,b) def reverse_str(st): st=list(st[:]) l=len(st)-1 i=0 while(i