Last active
August 16, 2017 13:25
-
-
Save nozma/f92f3aa1f1c20dd0f947cecea6094a4e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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