mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-05 20:44:19 +01:00
Add basic quiz functionality
This commit is contained in:
8
tvdt/quiz/helpers.py
Normal file
8
tvdt/quiz/helpers.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import random
|
||||
import string
|
||||
|
||||
|
||||
def generate_season_code(length: int = 5) -> str:
|
||||
return "".join(
|
||||
random.choice(string.ascii_uppercase + string.digits) for _ in range(length)
|
||||
)
|
||||
Reference in New Issue
Block a user