Variation #1...
from collections import defaultdict
r = defaultdict(list)
for s, i in [item.split(',') for item in store1 + store2]: r[s].append(int(i))
Variation #2...
If I were planning on handling raw info from one or more stores, I might have a function and I would go for readability rather than compactness, and use type hints:
def raw_store_info_to_dict(all_store_raw_info: list[str]) -> defaultdict[str,list[int]]:
all_stores_dict = defaultdict(list)
for s, i in [item.split(',') for item in chain.from_iterable(all_store_raw_info)]:
all_stores_dict[s].append(int(i))
return all_stores_dict
store1=['mango,5', 'apple,10', 'banana,6']
store2=['mango,7', 'apple,8', 'banana,7']
store3=['mango,17', 'apple,18', 'banana,17']
store4=['grape,3', 'cider,2', 'banana,77']
store5=['mango,27', 'apple,28', 'banana,37']
print(raw_store_info_to_dict([store1, store2, store3, store4, store5]))
# Output:
# defaultdict(<class 'list'>, {'mango': [5, 7, 17, 27], 'apple': [10, 8, 18, 28], 'banana': [6, 7, 17, 77, 37], 'grape': [3], 'cider': [2]})