You will write the two file-size rules of this course as functions, and the rule for the number of colours.
Your tasks.
sound_bits, return the bits a recording needs: sample rate times resolution times seconds.image_bits, return the bits an image needs: width times height times colour depth.colours, return the number of colours a pixel can have with a colour depth of depth bits.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…