diff --git a/about_bool.py b/about_bool.py index faf4417..a911f13 100644 --- a/about_bool.py +++ b/about_bool.py @@ -17,6 +17,7 @@ def test_has_false_literal(): assert not a + def test_python_can_calculate_bool_expressions(): """ Python может проверять, является выражение истиной или ложью diff --git a/about_compound_conditions.py b/about_compound_conditions.py index 049a337..e0f73d0 100644 --- a/about_compound_conditions.py +++ b/about_compound_conditions.py @@ -10,6 +10,7 @@ def test_and_returns_one_of_the_operands(): assert r == 'b' # попробуйте такие варианты: True, False, 'a', 'b' + def test_or_returns_one_of_the_operands(): """ Оператор or выполняет булевы операции, но возвращает не булево diff --git a/about_conditions.py b/about_conditions.py index ab59a89..356b9df 100644 --- a/about_conditions.py +++ b/about_conditions.py @@ -14,6 +14,7 @@ def test_start_if(): assert a == 3 + def test_if_and_else(): """ Использование конструкции if и else diff --git a/about_dictionaries.py b/about_dictionaries.py index ec99b66..f1a9a1d 100644 --- a/about_dictionaries.py +++ b/about_dictionaries.py @@ -16,6 +16,7 @@ def test_create_dictionary_with_literal(): assert dict_comparator(d, {'a':1, 'b':2}) # попробуйте подстваить объект вида {key1: value1, key2: value2,...} + def test_create_dictionary_with_constructor(): """ Словарь в Python можно создать с помощью конструктора словаря diff --git a/about_floats.py b/about_floats.py index 0374149..4bbcaa6 100644 --- a/about_floats.py +++ b/about_floats.py @@ -12,6 +12,7 @@ def test_can_sum_up(): assert 2.5 + 1.2 == 3.7 + def test_can_assign_to_variables(): """ Вещественные числа можно записывать в переменные diff --git a/about_format.py b/about_format.py index 4cc44fe..a7e7206 100644 --- a/about_format.py +++ b/about_format.py @@ -12,6 +12,7 @@ def test_format_simple(): assert str2 == 'Hello, world! 123' + def test_format_indeces(): """ Плейсхолдеры могут быть пронумерованы diff --git a/about_integers.py b/about_integers.py index 6ba1411..7578fca 100644 --- a/about_integers.py +++ b/about_integers.py @@ -9,6 +9,7 @@ def test_can_sum_up(): assert 1 + 1 == 2 # Вставьте вместо __ такое значение, чтобы оно совпадало с результатом выполнения 1 + 1 + def test_can_deduct(): """ Целые числа можно вычитать diff --git a/about_lists.py b/about_lists.py index ddc4136..3bb8393 100644 --- a/about_lists.py +++ b/about_lists.py @@ -13,6 +13,7 @@ def test_create_list_with_literal(): assert my_list == ['Hello', 'world'] # попробуйте ввести такие варианты: list(), ['Hello', 'world'], {'Hello'} + def test_create_list_with_constructor(): """ Список в Python также можно создать с помощью функции list() diff --git a/about_set.py b/about_set.py index 05b30d4..dbcf605 100644 --- a/about_set.py +++ b/about_set.py @@ -11,6 +11,7 @@ def test_create(): P.S пустое множество невозможно создать как {}, так-как синтаксис совпадёт с созданием словаря. """ + my_set = set() # попробуйте такие варианты: set(), {1, 2, 3}, {'qwerty'}, set((1, 2, 3)) assert isinstance(my_set, set) diff --git a/about_slices.py b/about_slices.py index a4dbda2..c1e1956 100644 --- a/about_slices.py +++ b/about_slices.py @@ -11,6 +11,7 @@ def test_slice_with_index(): assert str1[2] == 't' + def test_slice_with_index_minus_one(): """ Если задать индекс со значением -1, то мы получим срез с последним символом строки diff --git a/about_strings.py b/about_strings.py index 146a95c..7a8fd7e 100644 --- a/about_strings.py +++ b/about_strings.py @@ -10,6 +10,7 @@ def test_string_indexes(): assert str1[5] == ',' + def test_string_slice(): """ Из строки можно брать срез diff --git a/about_variables.py b/about_variables.py index d639d29..7cb78fa 100644 --- a/about_variables.py +++ b/about_variables.py @@ -12,6 +12,7 @@ def test_can_assign_to_variable(): assert a + 3 == 15 + def test_can_assign_different_types(): """ В одну переменную можно записывать значения разных типов. diff --git a/koans_plugs.py b/koans_plugs.py index 0320b93..ee49c66 100644 --- a/koans_plugs.py +++ b/koans_plugs.py @@ -10,4 +10,4 @@ class ___(Exception): ____ = "-=> TRUE OR FALSE? <=-" -_____ = 0 \ No newline at end of file +_____ = 0