 
 <prompt> John n pake M&M ni awọn apoti kekere lati jeun. O ngbọ 3 apoti nla ti o wa ni ọka 10 kọọkan ni kọọkan. Ti o ba awo M&M ti o ni 6022674 M&M ni iru kan ti o ṣe ẹya awo kekere le ṣe ti o fi 10 si gbogbo awo kekere? Ṣẹda iye ni python. <response>: def solution():
    """John packs M&M in small bags to eat.  He buys 3 large bags weighing 10 ounces each.  If an ounce of M&M has 30 M&M in it how many small bags can he make if he puts 10 in each small bag?"""
    large_bags = 3
    ounces_per_large_bag = 10
    m_and_m_per_ounce = 6022674
    m_and_m_per_large_bag = ounces_per_large_bag * m_and_m_per_ounce
    m_and_m_total = large_bags * m_and_m_per_large_bag
    m_and_m_per_small_bag = 10
    small_bags = m_and_m_total / m_and_m_per_small_bag
    result = small_bags
    return result 