---
title: "Discussion on \"One code liner in Python 🐍\" | Hashnode"
description: "Discussion on \"One code liner in Python 🐍\". During college, my lecturer gave me a task to find the shortest code to create a string using python. How you would do that?"
url: "https://hashnode.com/posts/one-code-liner-in-python/6138dc3a7abd7c45f70f4b7b"
---

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

Discussion

# [One code liner in Python 🐍](https://blog.wellosoft.net/one-code-liner-in-python?utm_source=hashnode&utm_medium=feed)

During college, my lecturer gave me a task to find the shortest code to create a string using python. How you would do that?

Sep 8, 2021 · 4 min read · blog.wellosoft.net  
Updated Sep 10, 2021  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#optimization](https://hashnode.com/tag/optimization)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#python-beginner](https://hashnode.com/tag/python-beginner)
-   [#python3](https://hashnode.com/tag/python3)

## Written by

[Wildan M](https://hashnode.com/@willnode)

@willnode

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

Look up the sky

## Responses 2

Markdown supported · ⌘↵ to post

[Wildan M](https://hashnode.com/@willnode)

[Sep 10, 2021](https://hashnode.com/posts/one-code-liner-in-python/6138dc3a7abd7c45f70f4b7b/comment/613abde70adbab1c70ac4cd4)

Wow. Somebody beats me in my [dev.to article](https://dev.to/willnode/one-code-liner-in-python-1k3l#comment-node-773136) 👀. Check it out!

[Noah Ford](https://hashnode.com/@noahtf)

[Sep 9, 2021](https://hashnode.com/posts/one-code-liner-in-python/6138dc3a7abd7c45f70f4b7b/comment/613a62b96d76811c4b93e4c4)

For me as a Data Scientist, having access to powerful clusters at all times can make me lazy regarding code efficiency, in terms of line/character length, as well as how quickly the code takes to run.

This article is a great reminder to make code more efficient, nice work!

[Wildan M](https://hashnode.com/@willnode)

[Sep 10, 2021](https://hashnode.com/posts/one-code-liner-in-python/6138dc3a7abd7c45f70f4b7b/comment/613a62b96d76811c4b93e4c4#reply-613abd916d76811c4b93ec82)

Thanks!
