Hacker News new | ask | show | jobs
by jacob019 736 days ago
default=lambda: str(uuid.uuid4())
1 comments

ChatGPT, rewrite this as a named function

Sure,

```

UUID4 = uuid.uuid4()

def default_id():

    return UUID4
```