diff --git a/Algo/B2/Exercises/Imperative exercise.md b/Algo/B2/Exercises/Imperative exercise.md index a632d8e..490ac86 100644 --- a/Algo/B2/Exercises/Imperative exercise.md +++ b/Algo/B2/Exercises/Imperative exercise.md @@ -1,13 +1,10 @@ ## Exercise 1: ```python def test (n: int) -> bool: - if (n >= 100): - if (n < 1000): - return true - else: - return false - else: - return false + return n >= 100 and n < 100 + +def sum_digits (n: int) -> int: + ``` ## Exercise 2: