a guest Nov 20th, 2017 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- # ex: wave("hello") => ["Hello", "hEllo", "heLlo", "helLo", "hellO"]
- def wave(st):
- return [st[:i] + st[i].upper() + st[i+1:] for i, char in enumerate(st) if char.isalpha()]
RAW Paste Data