“Reverte uma string usando revertido” Respostas de código

Reverte uma string usando revertido

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))
Outrageous Ostrich

Reverte uma string usando revertido

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))
Outrageous Ostrich

Reverte uma string usando revertido

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))
Outrageous Ostrich

Respostas semelhantes a “Reverte uma string usando revertido”

Perguntas semelhantes a “Reverte uma string usando revertido”

Mais respostas relacionadas para “Reverte uma string usando revertido” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código