Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Reverse an string Using Reversed function

def reverse(string):
string = "".join(reversed(string))
return string
s = "SoftHunt"
print ("The original string is : ",end="")
print (s)
print ("The reversed string(using reversed) is : ",end="")
print (reverse(s))
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Reverse #string #Using #Reversed #function
ADD COMMENT
Topic
Name
4+9 =