You are on page 1of 1

CHALLENGE 1: FIREWORKS

SUGGESTED TIME: 20 MINUTES


A programmer is designing a program which should display an animated firework display.

Some of the lines of code in the program are mixed up. Some sections of the program
include different options for lines of code and only one of the options should be included in
the program. When the program is complete it should generate an animated fireworks
display similar to the image below:

Example program output (fireworks appearing in random positions on a black background)

Using the file Q03.py below:

Amend the code to make the program work and produce the correct output.
You will need to rearrange some lines of code, choose between alternative lines of code and
fill in some blank spaces.
Do not change the functionality of the given lines of code.
Do not add any additional functionality

Save your file in the COMPLETED_CODING folder as Q03_FINISHED.py

A self marking online version of this challenge can be found here:


https://blog.withcode.uk/2022/04/q3-python-exam-practice-questions-for-edexcel-gcse-computer-
science/

You might also like