Soldier Serial Number Generator

Beginner

In this project, you will learn how to implement a Weapon Factory class that generates unique IDs for clone soldiers in the Galactic Empire's clone factory. The Weapon Factory class is designed as an iterator, allowing you to easily generate and manage a sequence of unique IDs.

Python

Introduction

In this project, you will learn how to implement a Weapon Factory class that generates unique IDs for clone soldiers in the Galactic Empire's clone factory. The Weapon Factory class is designed as an iterator, allowing you to easily generate and manage a sequence of unique IDs.

👀 Preview

------test1-------
1000face
1000facf
1000fad0
------test2-------
1000f000
1000f001
1000f002
1000f003
1000f004
1000f005
1000f006
1000f007
1000f008
1000f009
1000f00a

🎯 Tasks

In this project, you will learn:

  • How to create a custom iterator class in Python
  • How to generate unique hexadecimal IDs in sequence
  • How to use the iterator class to generate and manage a sequence of IDs

🏆 Achievements

After completing this project, you will be able to:

  • Implement a custom iterator class in Python
  • Generate unique hexadecimal IDs in sequence
  • Use an iterator class to manage a sequence of IDs
  • Enhance the iterator class with additional features, such as ID validation

Teacher

labby

Labby

Labby is the LabEx teacher.