You are given a string S of length N consisting of lowercase English letters, and an integer K. Print the string obtained by replacing every character in S that differs from the K-th character of S, with `*`.
import numpy as np
n=3
a=[input() for i in range(n)]
print(a)
S=list(a[1])
s=len(S)
K=int(a[2])-1

for i in range(s):
  if S[i]!=S[K]:
    S[i]="*"
mojiretu = ''
    
for x in S:
    mojiretu += x
    
print(mojiretu)
import numpy as np
n=3
a=[input() for i in range(n)]

S=list(a[1])
s=len(S)
K=int(a[2])-1

for i in range(s):
  if S[i]!=S[K]:
    S[i]="*"
mojiretu = ''
    
for x in S:
    mojiretu += x
    
print(mojiretu)