My issue
n=int(input())
for i in range(n):
sum1=0
m=input()
k=input()
x=[int(i) for i in m.split()]
j=[i for i in k]
p=[‘a’,‘b’,‘c’,‘d’,‘e’,‘f’,‘g’,‘h’,‘i’,‘j’,‘k’,‘l’,‘m’,‘n’,‘o’,‘p’,‘q’,‘r’,‘s’,‘t’,‘u’,‘v’,‘w’,‘x’,‘y’,‘z’]
for am in p:
if(am not in j):
cn=p.index(am)
sum1+=cn+x[0]
print(sum1)
what is wrong in my code
My code
# cook your dish here
n=int(input())
for i in range(n):
sum1=0
m=input()
k=input()
x=[int(i) for i in m.split()]
j=[i for i in k]
p=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
for am in p:
if(am not in j):
cn=p.index(am)
sum1+=cn+x[0]
print(sum1)
Problem Link: Mathison and pangrams Practice Coding Problem - CodeChef