Skip to content

Instantly share code, notes, and snippets.

@jz-feng
Created April 15, 2016 22:18
Show Gist options
  • Save jz-feng/d70b99cc5f6ccf2865964d4408b0b2ba to your computer and use it in GitHub Desktop.
Save jz-feng/d70b99cc5f6ccf2865964d4408b0b2ba to your computer and use it in GitHub Desktop.
def meme():
word = raw_input("enter word: ")
for c in word:
print c.upper(), " ",
print
print
for i, c in enumerate(word[1:-1]):
print c.upper(), " " * ((len(word) - 1) * 4 - 3), word[len(word)-i-2].upper()
print
for c in word[::-1]:
print c.upper(), " ",
print
print
meme()
@pbardea
Copy link

pbardea commented Apr 15, 2016

D   A   N   K       M   E   M   E   S

A                                   E

N                                   M

K                                   E

                                    M

M

E                                   K

M                                   N

E                                   A

S   E   M   E   M       K   N   A   D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment