here is my code:
conbi = ['a1','b1','c3','c4','f7']
left_unmatched = 5
wrongtimes = 0
right = 0
guess = input('Shoot: ').split(' ')
guess = list (guess)
for i in range(len(guess)):
if guess[i] in conbi:
left_unmatched -=1
right +=1
print ('Hit:',right,'Missed: ',left_unmatched)
print ('Hit:',right,'Missed: ',left_unmatched)
when I enter a1 b1 c3 c4 c7:
it should be printed out like "hit:5 missed: 0"but it appeared to be "hit :4 missed :1"
could any one tell me why and hot to correct it?