Skip to content

Instantly share code, notes, and snippets.

@tebeka
Created June 6, 2022 10:44
Show Gist options
  • Save tebeka/cbb7d5eb55b907db8333c281b901992f to your computer and use it in GitHub Desktop.
Save tebeka/cbb7d5eb55b907db8333c281b901992f to your computer and use it in GitHub Desktop.
haystack = "Where's Wally?"
needle = 'Waldo'
if haystack.find(needle):
print('Found Waldo')
else:
print('Waldo not found')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment