 
 <prompt> John na-achọ iji na 3 ọtụtụ na aka 60 mph ma ọ bụrụ na ọ gara agba ọ bụla n'ụlọ maka ọ bụghị ọrụ ọdịda n'ụlọ.  Ọ gara iji n'ụlọ n'ime 4 ọtụtụ ma ọ bụla n'ime ọtụtụ 2 n'agbanyeghị traffic.  Ọ gara iji n'ime ọtụtụ ọkara na aka 30mph, tupu ọ bụla n'ime ọtụtụ 4 n'aka 80 mph.  Kedu ihe ọ bụla n'ụlọ na ọ bụla n'ime ọtụtụ 4? Mepụta Python nkọwa. <response>: def solution():
    """John na-achọ ike iji n'ụzọ 3 na-agụ ọsọ na 60 mph maka ya na-emepe ya na-emepe ya enweghị ike ọ bụla n'ụlọ na-akpọ ya. O nwere ike iji n'ụzọ 4 ma ọ bụrụ na ọ na-emepe n'ụzọ mbụ ma ọ bụla n'ụzọ na-agụ ọsọ n'ime traffic. O nwere ike iji n'ụzọ n'ime ọkụ 30 mph, tupu o nwere ike iji n'ụzọ n'ime ọsọ 4 na-agụ na 80 mph. Kedu ihe ọ bụla ọ bụla n'ụlọ n'ụzọ a?"""
    # jiri a usoro iji mezie ihe ọ bụla gara agba n'ime ọsọ, na ike
    def distance_traveled(time, speed):
        distance = time * speed
        return distance
    # ihe ọ bụla na-agụ ọsọ n'ụzọ 3
    distance_3_hours = distance_traveled(3, 60)
    # ihe ọ bụla na-agụ ọsọ n'ụzọ na-emepe na 30 mph
    distance_30_mph = distance_traveled(0.5, 30)
    # ihe ọ bụla na-agụ ọsọ n'ụzọ na-emepe na 80 mph
    distance_80_mph = distance_traveled(1.5, 80)
    # ihe ọ bụla n'ụlọ na-emepe n'ụzọ 4
    distance_to_home = distance_3_hours - distance_30_mph - distance_80_mph
    result = distance_to_home
    return result 