Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. n=int(input())
  2. mirror = [ input() for i in range(0,n) ]
  3. state = int(input())
  4. display = mirror[::-1] if state > 2 else mirror
  5. for line in display:
  6. print(line if state % 2 == 1 else line[::-1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement