Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. # coding: utf-8
  2. s = 'Hi He Lied Because Boron Could Not Oxidize Fluorine. New Nations Might Also Sign Peace Security Clause. Arthur King Can.'
  3.  
  4. target = 1, 5, 6, 7, 8, 9, 15, 16, 19
  5.  
  6. result = [w[: 1 if i in target else 2] for i, w in enumerate(s.split(), 1)]
  7.  
  8. print(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement