daily pastebin goal
50%
SHARE
TWEET

Untitled

a guest Nov 20th, 2017 58 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. # ex: wave("hello") => ["Hello", "hEllo", "heLlo", "helLo", "hellO"]
  2. def wave(st):
  3.     return [st[:i] + st[i].upper() + st[i+1:] for i, char in enumerate(st) if char.isalpha()]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top