# Python code to reverse a string
      # using loop
      def reverse(s):
      str = ""
      for i in s:
      	str = i + str
      return str
      s = str(input())
      print ("The original string is : ",end="")
      print (s)
      print ("The reversed string(using loops) is : ",end="")
      print (reverse(s))
      
      Python language logo

      stringRev

      goodPractice
      programming

      printing the reverse of a string

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.