Skip to content

Instantly share code, notes, and snippets.

@nozma
Last active August 16, 2017 13:25
Show Gist options
  • Select an option

  • Save nozma/f92f3aa1f1c20dd0f947cecea6094a4e to your computer and use it in GitHub Desktop.

Select an option

Save nozma/f92f3aa1f1c20dd0f947cecea6094a4e to your computer and use it in GitHub Desktop.
# coding: utf-8
s = input().split()
target = [1, 5, 6, 7, 8, 9, 15, 16, 19]
result ={}
for i in range(len(s)):
if i + 1 in target:
result[i+1] = s[i][:1]
else:
result[i+1] = s[i][:2]
print(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment