Last active
August 17, 2017 13:04
-
-
Save nozma/b06214a24d7c8b21f6b2bb35a88c2bd6 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 = 'Hi He Lied Because Boron Could Not Oxidize Fluorine. New Nations Might Also Sign Peace Security Clause. Arthur King Can.' | |
| target = 1, 5, 6, 7, 8, 9, 15, 16, 19 | |
| result = [w[: 1 if i in target else 2] for i, w in enumerate(s.split(), 1)] | |
| print(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment