---
title: "Discussion on \"Python password generator one-liner\" | Hashnode"
description: "Discussion on \"Python password generator one-liner\". Following are the one-liner and execution samples:\n>>> import random\n>>> import string\n\n>>> ''.join(map(lambda x: random.choice(string.ascii_lowercase + string.ascii_uppercase + string.digits), range(6)))\n'DbtmlV'\n>>> ''.join(map(lambda x: random.cho..."
url: "https://hashnode.com/posts/python-password-generator-one-liner/65617d732c2b41669febd8c1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Python password generator one-liner](https://hash.hupili.net/python-password-generator-one-liner?utm_source=hashnode&utm_medium=feed)

Following are the one-liner and execution samples: >>> import random >>> import string >>> ''.join(map(lambda x: random.choice(string.ascii\_lowercase + string.ascii\_uppercase + string.digits), range(6))) 'DbtmlV' >>> ''.join(map(lambda x: random.cho...

Nov 25, 2023 · 1 min read · hash.hupili.net  
Read the article

-   [#post](https://hashnode.com/tag/post)

## Written by

[HU, Pili](https://hashnode.com/@hupili)

@hupili

  
[View profile](https://hashnode.com/@hupili)

Ultra runner with a crypto problem

Just run the code, or yourself.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
