Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

reverse of string

def reverseWord():
  List = list(input().split(" "))
  updatedList= [x[::-1] for x in List]
  return str(' '.join(updatedList))
   
print(reverseWord())
Source by practice.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #reverse #string
ADD COMMENT
Topic
Name
4+4 =