initial commit blyad

This commit is contained in:
2025-08-11 21:49:33 +02:00
commit d342f888a9
14 changed files with 738 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import unittest
#<!-- The Function the User needs to write -->
def revstring(x):
return x[::-1]
#<!-- This Test, test if the function works -->
class TestSolution(unittest.TestCase):
def test_simple(self):
x="";
self.assertEqual(revstring(x), x[::-1])
if __name__ == "__main__":
unittest.main()

11
problems/sortlist.py Normal file
View File

@@ -0,0 +1,11 @@
import unittest
class TestSolution(unittest.TestCase):
def test_sort(self):
# define x as a empty array.
# this will be used for the functiun ; a empty var does not work.
self.x = []
self.assertEqual(sortlist(self.x), sorted(self.x)) ## sort
if __name__ == "__main__":
unittest.main()