vote(['G', 'G', 'N', 'G', 'C'])
この結果を取得したい:('G', [1, 3, 0, 1])
g_count = 0
n_count = 0
l_count = 0
c_count = 0
for i in range(len(ballots)):
if ballots[i] == 'G':
g_count += 1
elif ballots[i] =='N':
n_count += 1
elif ballots[i] == 'L':
l_count +=1
else:
c_count += 1
return [n_count,g_count,l_count,c_count]
どうすれば先頭の「G」を取得できますか?