You are viewing a single comment's thread. Return to all comments →
Python 3
def workbook(n, k, arr): specials = 0 page = 0 for chapter in range(n): problems = arr[chapter] for page_probs in range(1, problems+1, k): page += 1 if page in range(page_probs, min(page_probs+k, problems+1)): specials += 1 return specials
Seems like cookies are disabled on this browser, please enable them to open this website
Lisa's Workbook
You are viewing a single comment's thread. Return to all comments →
Python 3