4 Digit Random Number generation in Python

Source code :

import random

print(random.randint(1000,9999))

Output :

1234

Output :


                

Comments :