diff --git a/python/tests/test_code.py b/python/tests/test_code.py index 159c78df..ee6cfbf1 100644 --- a/python/tests/test_code.py +++ b/python/tests/test_code.py @@ -6,6 +6,7 @@ def test_random_number_generator(): """Test random number generator.""" assert RandomNumberGenerator().get_number() + class Tests(unittest.TestCase): def my_test(self, arg1, arg2): self.assertEquals(arg1, arg2) diff --git a/python/type_checks.py b/python/type_checks.py index 811da988..766e8444 100644 --- a/python/type_checks.py +++ b/python/type_checks.py @@ -1,6 +1,7 @@ def greet_all(names: list[str]) -> None: for name in names: - print('Hello ' + name) + print("Hello " + name) + if __name__ == "__main__": heights = [5.5, 6, 5.9]