def test_iterative(self):
     self.assertEqual("ereht olleh", iterative("hello there"))
Exemple #2
0
 def test_iterative(self):
     self.assertEqual("ereht olleh", iterative("hello there"))
from algorithms.strings import recursive, iterative, pythonic, ultra_pythonic

a = "alsllskess"
print(recursive(a))

print(iterative(a))

print(pythonic(a))

print(ultra_pythonic(a))