reverse last K Characters

 reverse last K Characters

strVal=input().split()

X=int(input())

print("".join(reversed(strVal[-X:])))

Comments

Popular Posts