 
 <prompt> "Awọn ẹrọ ọja ọja n ṣe ọja fun 40 kobo ati awọn ọkọ fun 75 kobo. George ti ṣe $5 ati gba 3 ẹrọ ti owo ati ti o ni 1% ti owo rẹ wa. Nígbà ti o ṣe ọja ọja? Ṣẹda iṣẹlẹ ni python."

```The vending machines sell chips for 40 cents and candy bars for 75 cents. George spent $5 and got 3 bags of chips and had 1% of his money left. How many candy bars did he buy? Write a solution in python.``` <response>: def solution():
    """Awọn ẹrọ vending nikan npe ọpọlọpọ lẹta fun 40 kobo ati awọn ọkọ fun 75 kobo. George ti ṣe iye fun $5 ati gba 3 ẹrọ ti o ṣe 1% fun iye rẹ. Nígbà ti o ti gba awọn ọkọ ti o ti gba?"""
    chips_cost = 40
    candy_cost = 75
    money_spent = 500
    chips_bought = 3
    money_left = money_spent * 0.01
    money_spent_on_chips = chips_bought * chips_cost
    money_spent_on_candy = money_spent - money_spent_on_chips - money_left
    candy_bought = money_spent_on_candy / candy_cost
    result = candy_bought
    return result 