Question: By python 5. What is the output of this program, if the input is 'This is a test'? 1 def main(): 2 str input ('Enter
5. What is the output of this program, if the input is 'This is a test'? 1 def main(): 2 str input ('Enter a string: ') 3 index -len (str) 4 print ('The new string is: ',string_change (str)) 5 def string_change (strl): nstr = ' ' index len (strl) while index > 0: nstr += str1 [ index - 1 ] index = index - 1 10 return nstr 12 main () 6. What is the output of this program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
