Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Free lesson

ESP task 4a (5 of 5): Work well against the clock

The whole lesson, free. Read it and have a go at the activities. To work the tasks and labs in the real lesson, press Start lab, with no account needed.

40 minutes

A quick check that you are not a bot, then your own lab opens on the interactive lesson.

Already have an account? Sign in

Ten minutes left

It is the last session. You have 10 minutes. Your code works, but you have not saved your work. You have not written the review.

Time goes fast when you work. The students who do well are not always the fastest. They are the students who plan their time.

Key words

WordWhat it meansExample
DeadlineThe time when work must be finished.12:30
Time boxA fixed amount of time for one job.30 minutes for design
PriorityHow important a job is.must-have features
ChecklistA list of things to check, one by one.saved, named, handed in
Minimum working versionThe smallest version that does the main job.books a court
Test planA table of tests: what you try and what should happen.hour 21: refused
SupervisedA teacher watches while you work.an assessed session

The cells students fill in are left blank in this preview.

Check: what comes first?

Have a go

Check: what comes first?

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Time boxes for a 3 hour session

TimeMinutesJobDone when
0:00 to 0:1515Read the plan and the last notesYou know the next must-have
0:15 to 1:4590Build the must-haves, a step at a timeThe tests for them pass
1:45 to 2:1530Test and fixYour tests pass and you have noted the results
2:15 to 2:4530Should-haves, if there is timeOr make the code you have tidy
2:45 to 3:0015Save, name and check the hand-inEvery item on the checklist is ticked

The cells students fill in are left blank in this preview.

Try it: minutes between times

Code: python
def to_minutes(clock):
    parts = clock.split(":")    # "09:45" becomes ["09", "45"]
    return int(parts[0]) * 60 + int(parts[1])


start = "09:45"
end = "10:15"
print(to_minutes(end) - to_minutes(start))

# 9:45 is 9 * 60 + 45 = 585 minutes.
# 10:15 is 10 * 60 + 15 = 615 minutes.
# 615 - 585 = 30.

Make a free account to save your work and track your progress.

Check a plan against the clock

Write two functions about the clock. minutes_between gives the minutes from one time to another, for times written like "09:45". finishes_in_time says if you finish by the deadline. Change each time to minutes since midnight first: hours times 60, plus minutes. Press Run Tests to check your work.

Code: python
def minutes_between(start, end):
    # start and end are times like "09:45" and "10:15".
    # Give back how many minutes there are from start to end.
    # Hint: change each time to minutes since midnight (hours * 60 + minutes).
    return None


def finishes_in_time(start, minutes_needed, deadline):
    # True if starting at start and working minutes_needed minutes
    # ends at or before the deadline.
    return None

Make a free account to save your work, or press Start lab to work through the whole lesson.

Being stuck needs a plan

Everyone gets stuck. Do not just look at the screen.

  1. Write the problem in one sentence.
  2. Try one thing for 10 minutes.
  3. If it still does not work, write a note in your log and move to a different must-have.
  4. Come back when you have a new idea.

Ask your lecturer what help you may ask for in the real sessions.

Match the problem to the best move

Have a go

Loading…

Your answers are marked here and are not kept. A college account keeps every student’s marks.

The hand-in checklist

Important

Before the end of a session: Is everything saved? Are the files named clearly? Does the code run from the start? Is the evidence your lecturer asks for in the portfolio? Ask your lecturer exactly how work is handed in.

A hand-in checklist to copy

CheckDone?
All files saved, with clear names
The code runs from the start with no errors
I tested it, and my notes say what happened
Any evidence my lecturer asks for is in the portfolio
My assumptions are written down
My name or number is on every document

The cells students fill in are left blank in this preview.

Key words crossword

Have a go

Loading…

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Final check

Have a go

Final check

5 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Teach this lesson with your class

On a college account your students work the tasks and the labs as well, and every mark is kept for you.