How does the function call to reverse, reverse the string in the code below?

前端 未结 0 1303
一整个雨季
一整个雨季 2021-01-07 13:45
def reverse(s): 
  str = "" 
  for i in s: 
    str = i + str
  return str
  
s = "Geeksforgeeks"
  
print ("The original string  is : "         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题