reverse
def reverse(liste)
Algorithm
A function to reverse a string as argument.
Parameter |
Type |
Description |
s |
String |
The string to reverse |
- Returns
str : The reversed string
Source Code
res=[]
for i in range(0,len(liste)):
res.append(liste[len(liste)-i-1])
return res