Python Function to Generate Four-Digit Number

Prompt

Result