diff options
Diffstat (limited to 'doc/data/messages/t/too-many-nested-blocks/good.py')
| -rw-r--r-- | doc/data/messages/t/too-many-nested-blocks/good.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/data/messages/t/too-many-nested-blocks/good.py b/doc/data/messages/t/too-many-nested-blocks/good.py index c40beb573..1b14770ae 100644 --- a/doc/data/messages/t/too-many-nested-blocks/good.py +++ b/doc/data/messages/t/too-many-nested-blocks/good.py @@ -1 +1,6 @@ -# This is a placeholder for correct code for this message. +def correct_fruits(fruits): + if len(fruits) > 1 and "apple" in fruits and "orange" in fruits: + count = fruits["orange"] + if count % 2 and "kiwi" in fruits and count == 2: + return True + return False |
