 
 <prompt> Marcus dey try decide whether e really need do im homework. E get 50% chance say tomorrow go get substitute teacher wey no go collect the homework. Even if the normal teacher show, e get 40% chance say she go give everybody extension. Even if the whole class no get extension, e get 20% chance say Marcus fit convince the teacher say im dog chop im assignment and get personal extension. Wetin be the percentage chance say Marcus go actually need submit im homework tomorrow? Write Python function. <response>: def solution():
    """Marcus dey try decide whether e really need do e homework. E get 50% chance say tomorrow go get substitute teacher wey no go collect the homework. Even if the normal teacher show, e get 40% chance say she go give everybody extension. Even if the whole class no get extension, e get 20% chance say Marcus fit convince the teacher say e dog chop e assignment and get personal extension. Wetin be the percentage chance say Marcus go actually need submit e homework tomorrow?"""
    # chance say normal teacher go show
    chance_normal_teacher = 1 - 0.5  # probability say normal teacher na 1 minus probability say substitute teacher

    # chance say normal teacher no go give extension to the whole class
    chance_no_extension = 1 - 0.4  # probability say no extension na 1 minus probability say extension

    # chance say normal teacher no go give extension to the whole class and no go give Marcus personal extension
    chance_no_personal_extension = chance_no_extension * (1 - 0.2)  # probability say no extension na 1 minus probability say extension

    # chance say Marcus go actually need submit e homework tomorrow
    chance_homework_due = chance_normal_teacher * chance_no_personal_extension

    # convert probability to percentage
    result = 100 * chance_homework_due

    return result 