diff --git a/2023/three-problems.md b/2023/three-problems.md index 7a98502..ebe0799 100644 --- a/2023/three-problems.md +++ b/2023/three-problems.md @@ -25,7 +25,7 @@ function to do that: ```python def shift(inp): - return bool(inp) and (inp[0], inp[1:]) + return inp and (inp[0], inp[1:]) ``` Given an input sequence `inp`, this returns the first item `inp[0]` and all of