Skip to content

Instantly share code, notes, and snippets.

@ItsCosmas
Created May 8, 2019 20:33
Show Gist options
  • Save ItsCosmas/3624d60b1092d612e68f7f7357e198eb to your computer and use it in GitHub Desktop.
Save ItsCosmas/3624d60b1092d612e68f7f7357e198eb to your computer and use it in GitHub Desktop.
words = ("spam", "eggs", "sausages")
print(words[0])
print(words.count("spam"))
print(words.index("eggs"))
# They are immutable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment