Pythonin divmod-ohjelmalla saat jakolaskun osamäärän ja jäännösosan samaan aikaan. https://fi.from-locals.com/python-divmod-quotient-remainder/