All Challenges

Challenge 080 · Ages 12–16

Python Password Generator

Create a password generator.

Recommended Guided Learning Time: 3 hours

Learners may require additional or fewer hours depending on age, prior experience, pace and the level of development they choose to take their project to.

Primary STEAM area

Technology

The Challenge

What will your learner investigate?

Can you create a password generator. and explain the choices that make your solution effective?

Learning outcomes

  • Write and run Python code using appropriate variables, inputs and control structures.
  • Test, debug and improve the program.
  • Explain how the algorithm turns a problem into a working digital solution.

Connected learning

Computing: programming and algorithms; Mathematics: logic, number and variables; English: precise instructions and documentation; PSHE: responsible technology use.

Dream Areas

Software engineeringcomputer sciencedata sciencecybersecurityautomation engineering

Prepare for this Challenge

What you'll need

Here's what may be useful for completing this activity. Requirements may vary depending on the learner, activity format and equipment available.

Materials & consumables

  • Password-strength examples
  • test requirements
  • a written step-by-step plan for the program.

Equipment, tools & software

  • Computer
  • Python 3
  • approved editor
  • standard-library secrets module.

Safety & preparation

  • Use fictional passwords only
  • generate randomness with secrets rather than a predictable classroom dice-style generator
  • never display or collect real credentials.

These preparation notes support planning and do not replace a project-specific risk assessment or appropriate adult supervision.