File: good.py

package info (click to toggle)
pylint 3.3.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,660 kB
  • sloc: python: 74,101; makefile: 67
file content (13 lines) | stat: -rw-r--r-- 277 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)