Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- flatmatrix=[]
- word=list(input('Your fancy word:'))
- if len(word)<4:
- print('Please,make it more fancy (longer) ')
- else:
- for i in range(len(word)):
- flatmatrix.append(word)
- for j in range(len(word)-1,-1,-1):
- for i in range(len(word)-1,-1,-1):
- print(flatmatrix[i][j],end=' ')
- print()
- output = ''
- for char in reversed(word):
- output += char * len(word)
- result = list(output)
- print(result[11:])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement