EduKate by CECS robot logoEduKateby Cass Education & Careers Services
FREE · NO ACCOUNT NEEDED

A little practice.
A clearer next step.

Revise a topic, solve a short challenge or write your first lines of Python. Start with one activity, use the feedback and try a related example.

Four learning-game examples show a running total of 12, a 25% discount on £48 giving £36, a proofread sentence and False AND True giving False.
Trace Detective, Budget Challenge, Sentence Repair and Logic Challenge turn code, maths, English and Boolean reasoning into short activities with explained answers.
4 learning games12 short challengesFree hints & worked answers
PICK YOUR FIRST CHALLENGE

Learning games that explain the answer

Every game has three short challenges. Take your time, use a hint and check the method. Your progress stays on this page for this visit.

COMPUTER SCIENCE

Trace Detective

Follow each line of Python and track what changes. Work out the output before checking your trace.

Challenge 1 of 3

Follow the running total

What number appears on the final printed line?

total = 0
for number in [2, 4, 6]:
    total = total + number
print(total)
Need a hint?

Start with total = 0. Add the next number to the current total, not to the starting value.

Show the worked answer

12

The total changes from 0 to 2, then 6, then 12. The print statement runs after the loop, so only the final total is printed.

Try a variation: If the list were [2, 4, 6, 8], the final total would be 20. Try tracing that extra iteration.

Challenge 2 of 3

Find the item at an index

Which word does this program print?

colours = ["blue", "gold", "green"]
index = 1
print(colours[index])
  1. blue
  2. gold
  3. green
Need a hint?

Python list positions start at 0. Label the three positions 0, 1 and 2.

Show the worked answer

gold

blue is at index 0, gold is at index 1 and green is at index 2. The value of index is 1, so print displays gold without quotation marks.

Try a variation: Changing index to 2 prints green. An index of 3 would be outside this list and cause an IndexError.

Challenge 3 of 3

Count only the matches

What number is printed when the loop finishes?

count = 0
for value in [3, 5, 7, 9]:
    if value > 5:
        count = count + 1
print(count)
Need a hint?

Make a row for each value. Increase count only when the condition value > 5 is true.

Show the worked answer

2

3 and 5 do not pass the condition. 7 and 9 do, so count increases twice: 0 → 1 → 2. Greater than does not include a value equal to 5.

Try a variation: If the condition were value >= 5, the matching values would be 5, 7 and 9, giving a count of 3.

FUNCTIONAL SKILLS MATHS

Budget Challenge

Plan a purchase, check a discount and stay within a budget. Write a method as well as finding the answer.

Challenge 1 of 3

Find the sale price

A pair of trainers costs £48 before a 25% discount. What is the sale price?

Need a hint?

25% is one quarter. Find one quarter of £48, then subtract the discount from the original price.

Show the worked answer

£36

£48 ÷ 4 = £12 discount. £48 − £12 = £36 to pay. Alternatively, 75% remains: 0.75 × £48 = £36.

Try a variation: At a 10% discount, the saving would be £4.80 and the price would be £43.20. A smaller discount should leave a higher price.

Challenge 2 of 3

Keep lunch within budget

Four lunches cost £6.50 each. A shared snack costs £3.20. You have £30 altogether. How much money is left?

Need a hint?

Multiply the lunch price by four first. Add the snack once, then subtract the combined cost from £30.

Show the worked answer

£0.80

4 × £6.50 = £26.00. Add £3.20 to get £29.20. £30.00 − £29.20 = £0.80 left. Keep pounds and pence aligned when subtracting.

Try a variation: If the snack cost £4.50 instead, the total would be £30.50, which is 50p over budget.

Challenge 3 of 3

Work back to the original price

A bag is on sale for £32 after a 20% discount. What was its original price?

Need a hint?

After a 20% discount, the sale price is 80% of the original. Divide by 0.80 to recover the whole amount.

Show the worked answer

£40

80% of the original price is £32, so £32 ÷ 0.80 = £40. Check: 20% of £40 is £8, and £40 − £8 = £32. Adding 20% of £32 would use the wrong starting amount.

Try a variation: If a £54 sale price were 90% of the original, the original would be £54 ÷ 0.90 = £60.

FUNCTIONAL SKILLS ENGLISH

Sentence Repair

Choose a clear, accurate sentence. Notice the capital letters, agreement and punctuation that make it work.

Challenge 1 of 3

Check capitals and sentence endings

Which sentence uses capital letters and a sentence-ending full stop correctly?

  1. On tuesday, I start my new course.
  2. On Tuesday, I start my new course.
  3. On Tuesday, i start my new course
Need a hint?

Days of the week and the pronoun I need capital letters. Check the ending too.

Show the worked answer

On Tuesday, I start my new course.

Tuesday is the name of a day, so it starts with a capital. The pronoun I is always capitalised. The full stop ends this statement.

Try a variation: Check this version: “On Friday, I attend an interview.” Friday and I need capitals for the same reasons.

Challenge 2 of 3

Match the verb to the subject

Which sentence has correct subject–verb agreement?

  1. The list of interview questions are on the desk.
  2. The list of interview questions be on the desk.
  3. The list of interview questions is on the desk.
Need a hint?

Find the head of the subject: one list. The plural word questions does not change that.

Show the worked answer

The list of interview questions is on the desk.

The subject is the singular noun list, so the verb is is. The phrase of interview questions gives more information about the list.

Try a variation: “The interview questions are on the desk” uses are because questions is now the plural subject.

Challenge 3 of 3

Show shared ownership

Three learners each have a project. Which sentence correctly shows that the projects belong to those learners?

  1. The three learners' projects are ready.
  2. The three learner's projects are ready.
  3. The three learners projects are ready.
Need a hint?

The plural noun learners already ends in s. Add the apostrophe after that s to show possession.

Show the worked answer

The three learners' projects are ready.

Learners is a regular plural ending in s. For possession, place the apostrophe after the final s: learners' projects. Learner's would refer to one learner.

Try a variation: For one learner, write “The learner's project is ready.” The number of owners determines the apostrophe position here.

COMPUTER SCIENCE

Logic Challenge

Break a Boolean expression into small decisions. Work out True or False using AND, OR and NOT.

Challenge 1 of 3

Both conditions must pass

What is the value of can_join?

age = 15
has_permission = True
can_join = age >= 16 and has_permission
  1. True
  2. False
Need a hint?

Evaluate age >= 16 first. AND needs both sides to be true.

Show the worked answer

False

15 >= 16 is False. has_permission is True. False AND True gives False, so can_join is False.

Try a variation: If age were 16 and permission stayed True, both conditions would pass and can_join would be True.

Challenge 2 of 3

At least one condition must pass

What is the value of show_power_notice?

battery = 55
on_charge = True
show_power_notice = battery < 20 or on_charge
  1. True
  2. False
Need a hint?

OR is true when either side is true, including when both are true.

Show the worked answer

True

55 < 20 is False, but on_charge is True. False OR True gives True, so show_power_notice is True.

Try a variation: With battery = 55 and on_charge = False, both sides would be False and the result would be False.

Challenge 3 of 3

Apply NOT before AND

What is the value of can_enter?

is_locked = False
has_ticket = True
can_enter = not is_locked and has_ticket
  1. True
  2. False
Need a hint?

NOT reverses a Boolean value. Evaluate not is_locked, then combine that result with has_ticket.

Show the worked answer

True

NOT False is True. The expression becomes True AND True, giving True. The door is not locked and the person has a ticket.

Try a variation: If is_locked changed to True, NOT True would be False. False AND True would make can_enter False.

READ · ATTEMPT · CHECK

Free exam revision and practice

Choose your subject and level for original exam-style activities, worked examples and explanations. These are EduKate practice resources, not official examination papers.

TAKE YOUR NEXT STEP

Make something useful

FREE PYTHON DEMO

Edit code. Run it. Understand it.

Repair a loop, validate an input and search a list in three guided browser-based Python missions.

Open the free Python demo
FREE EMPLOYABILITY TOOLS

Turn your skills into evidence.

Build a CV, collect examples of your strengths and prepare an interview answer. Your draft work stays in your browser.

Open the free CV builder

Want a full course with more guided activities and progress tools? Explore the subscription courses.