python modules uid with function code example
Example 1: python create uuid
>>> import uuid
>>> uuid.uuid4()
UUID('bd65600d-8669-4903-8a14-af88203add38')
>>> str(uuid.uuid4())
'f50ec0b7-f960-400d-91f0-c42a6d44e3d0'
>>> uuid.uuid4().hex
'9fe2c4e93f654fdbb24c02b15259716c'
Example 2: python get unique id for object
# Get an Id for object:
print(id(2))
140711177190496
print(id("Hi"))
2568748444272
#Why is it so important? If you want to decode something,
#you can encode it easily by checking with the if statement