Project 18: Confirmation Code Generator
Data Engineer
Builds on these lessons
Current Task
Objective
np.random.randint(low, high) generates a random integer in [low, high) — set a seed first for reproducible output.
Task: seed the random generator with 42, then generate and print a 6-digit confirmation code between 100000 and 999999.
index.py
import numpy as np
np.random.seed(42)
confirmation_code = np.random.randint(100000, 999999)
print(confirmation_code)
* Hint: Correct characters turn green, incorrect ones turn red.
Live Preview
🖼️
Verify your code to see the preview