Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. flatmatrix=[]
  2. word=list(input('Your fancy word:'))
  3. if len(word)<4:
  4. print('Please,make it more fancy (longer) ')
  5. else:
  6. for i in range(len(word)):
  7. flatmatrix.append(word)
  8. for j in range(len(word)-1,-1,-1):
  9. for i in range(len(word)-1,-1,-1):
  10. print(flatmatrix[i][j],end=' ')
  11. print()
  12. output = ''
  13. for char in reversed(word):
  14. output += char * len(word)
  15. result = list(output)
  16. print(result[11:])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement