Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Nov 20th, 2017
92
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
# 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()]
Add Comment
Please,
Sign In
to add comment
Public Pastes
How Does HFM 100% SuperCharged Bonus Work for...
PHP | 15 min ago | 2.51 KB
Untitled
HTML 5 | 20 min ago | 0.34 KB
Untitled
Bash | 24 min ago | 1.06 KB
RequestException: error with request [Errno 1...
Python | 25 min ago | 2.88 KB
take_out_the_trash
Python | 32 min ago | 2.59 KB
bin_metadata
Python | 33 min ago | 2.14 KB
requirements main_env
Bash | 35 min ago | 0.83 KB
HFM Launches Gadget Giveaway Trading Contest
PHP | 35 min ago | 1.25 KB
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
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!