“Odwróć ciąg za pomocą odwróconego” Kod odpowiedzi

Odwróć ciąg za pomocą odwróconego

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

Odwróć ciąg za pomocą odwróconego

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

Odwróć ciąg za pomocą odwróconego

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

Odpowiedzi podobne do “Odwróć ciąg za pomocą odwróconego”

Pytania podobne do “Odwróć ciąg za pomocą odwróconego”

Więcej pokrewnych odpowiedzi na “Odwróć ciąg za pomocą odwróconego” w Python

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu