### Instruction: Jeremy buys 30 watermelons. He eats 3 watermelons per week. Each week he gives 2 to his dad. How many weeks will the watermelons last? Let's program in Python in the response.### Response: # define the variables
total_watermelons = 30
eat_per_week = 3
given_to_dad_per_week = 2

# calculate the total watermelons consumed per week
total_per_week = eat_per_week + given_to_dad_per_week

# calculate the number of weeks the watermelons will last
weeks = total_watermelons / total_per_week

# print the result
print(weeks)