Created
April 15, 2016 22:18
-
-
Save jz-feng/d70b99cc5f6ccf2865964d4408b0b2ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def meme(): | |
word = raw_input("enter word: ") | |
for c in word: | |
print c.upper(), " ", | |
for i, c in enumerate(word[1:-1]): | |
print c.upper(), " " * ((len(word) - 1) * 4 - 3), word[len(word)-i-2].upper() | |
for c in word[::-1]: | |
print c.upper(), " ", | |
meme() |
pbardea
commented
Apr 15, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment