← Back to List

26546번: Reverse ↗

Solutions

Python 3
122 B | 122 chars
for _ in range(int(input())):
    name, s, e = input().split()
    s, e = int(s), int(e)
    
    print(name[:s]+name[e:])