Skip to content

Instantly share code, notes, and snippets.

@vince-vibin
Created December 16, 2022 14:53
Show Gist options
  • Save vince-vibin/a5f94f47db40d5471a5a7ca10acebd71 to your computer and use it in GitHub Desktop.
Save vince-vibin/a5f94f47db40d5471a5a7ca10acebd71 to your computer and use it in GitHub Desktop.
StackOverflow example:
# https://stackoverflow.com/questions/74822223/for-loop-only-returns-the-last-value
for tweet in tweets:
for word in tweet:
if word.startswith("#"):
hashtag_list.append(word)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment