Advertisement
AskTomorrow

Untitled

Feb 28th, 2020
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. words = input().split()
  2.  
  3.  
  4. def func(s):
  5.     return s[::2].lower()
  6.  
  7.  
  8. for i in words:
  9.     print(func(i))
  10.  
  11. newWords = map(func, words)
  12.  
  13. print(list(newWords))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement