Advertisement
AlimusSifar

The Haunted House - Toph.co - Implementation

Apr 28th, 2020
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. T = int(input())
  2. for i in range(T):
  3.     s = list(input())
  4.     mid = int(len(s)/2)
  5.     out = ''
  6.     for j in range(mid):
  7.             out = s[j] + out
  8.     print(out)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement