Skip to content

Instantly share code, notes, and snippets.

@DavidLutton
Created May 19, 2019 22:49
Show Gist options
  • Save DavidLutton/5e0b5a1f5c08bea76fdf2a374df18305 to your computer and use it in GitHub Desktop.
Save DavidLutton/5e0b5a1f5c08bea76fdf2a374df18305 to your computer and use it in GitHub Desktop.
a = 'abcdef'
for x in 2,3,6:
print(f'{x} : {a[x-1]}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment