There is a two input first input represent the index of the second input.I need to find the 'X' position of second input are same or not?
input:
123X56XX
Ahjutruu
Output:
True
Example: X in input one at 4,7,8
position of 4,7,8 in second input is 'u' all are same so i need to print "true"
I tried using enumerate function but not came:
a="123X56XX"
b="Ahjutruu"
xi=[]
for i,val in enumerate(a):
if val=='X':
xi.append(i)
print(xi)
#next step only i dont know how to doo please help
Next i dont know how to check