Posts

Showing posts with the label write a program of word w and number n and print the last 3 characters of the word n times in a single line

write a program of word w and number n and print the last 3 characters of the word n times in a single line

  write a program of word w and number n and print the last 3 characters of the word n times in a single line.     w=input()      n=int(input())      r=w[-3:]      print(r*n)