genrate unique key in python 1

genrate unique key in python

import uuid

for i in range(2):
    uuidFour = uuid.uuid4()
    print("uuid of version four", uuidFour)

Here is what the above code is Doing:
1. We import the uuid module.
2. We create a for loop that will run two times.
3. We create a variable called uuidFour and set it equal to uuid.uuid4().
4. We print out the uuidFour variable.

Similar Posts