reverse last K Characters
strVal=input().split()
X=int(input())
print("".join(reversed(strVal[-X:])))
Comments
Post a Comment