Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
9+9 =