diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2023-02-04 22:33:48 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2023-02-05 20:49:40 +0100 |
commit | 76ddd4d0daba17a00a432fb76f0a2c409da5f3c4 (patch) | |
tree | 12dc698fdacd46f5beea3db3ff9c33de8aa2ee9a /doc/data/messages/f/forgotten-debug-statement/good.py | |
parent | 8d13dbe9d82da64f21c5a62b7c16d2332839a346 (diff) | |
download | pylint-git-76ddd4d0daba17a00a432fb76f0a2c409da5f3c4.tar.gz |
[forgotten-debug-statement] Generate imaginative example without any fruit
Prompt: Could you generate another example but for 'forgotten-debug-statement',
please keep it lively and original.
Diffstat (limited to 'doc/data/messages/f/forgotten-debug-statement/good.py')
-rw-r--r-- | doc/data/messages/f/forgotten-debug-statement/good.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/data/messages/f/forgotten-debug-statement/good.py b/doc/data/messages/f/forgotten-debug-statement/good.py index c40beb573..21132cb47 100644 --- a/doc/data/messages/f/forgotten-debug-statement/good.py +++ b/doc/data/messages/f/forgotten-debug-statement/good.py @@ -1 +1,8 @@ -# This is a placeholder for correct code for this message. +def find_the_treasure(clues): + for clue in clues: + if "treasure" in clue: + return True + return False + +treasure_hunt = ["Dead Man's Chest", "X marks the spot", "The treasure is buried near the palm tree"] +find_the_treasure(treasure_hunt) |