daily pastebin goal
55%
SHARE
TWEET

Untitled

a guest Nov 20th, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Top