Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
Which module would you use for each job?
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Plan. Match the job to the module, using the table of the lesson.
datetime. Dates and the gap between them.random. random.choice(questions).math. math.sqrt(50).statistics. statistics.median(marks).time. time.sleep(2).Check. If you are not sure about a module, run dir(module) and look for a tool with the right name, or help(module).
Answer: datetime, random, math, statistics, time.
Log in to join the discussion.
Loading…