Skip to content

Instantly share code, notes, and snippets.

@raeq
Created August 31, 2020 11:20
Show Gist options
  • Save raeq/2f5898d29a2c20b837cfb89dfcd22bca to your computer and use it in GitHub Desktop.
Save raeq/2f5898d29a2c20b837cfb89dfcd22bca to your computer and use it in GitHub Desktop.
Enumeration of a string.
hello: str = 'Hello World!'
print (list(enumerate(hello)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment