# python-one-liner **Repository Path**: leizhenpeng/python-one-liner ## Basic Information - **Project Name**: python-one-liner - **Description**: 💻python语法提升,一行流,书本仓库 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-24 - **Last Updated**: 2021-11-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Python One Liners This repository collects all Python one-liners that are of interest to the Pyhton community. One-Liners are concise snippets of source code (with or without library calls) that accomplish a given task in a concise and compressed manner. They are often used to call a Python script from the operating system terminal using the `python -c` command: ```python python -c 'print("hello world")' ``` Here are additional resources for Python one-liners: # Free Python One-Liners Learning Resources * [Free ''Python One-Liners'' videos & book resources](https://pythononeliners.com/) * [Collection of ''One-Liners'' with interactive shell](https://blog.finxter.com/10-python-one-liners/) * [Book ''Python One-Liners''](https://www.amazon.com/gp/product/B07ZY7XMX8) * [Interesting Quora Thread ''Python One-Liner''](https://www.quora.com/What-are-some-of-the-most-elegant-greatest-Python-one-liners) * [Python One-Line X - How to accomplish different tasks in a single line](https://blog.finxter.com/python-one-line-x/) * [Subreddit '''Python One-Liners'''](https://www.reddit.com/r/PythonOneLiners/) * [Python One-Liners Wiki](https://wiki.python.org/moin/Powerful%20Python%20One-Liners) # How to Contribute Your One-Liners Feel free to submit your own one-liners in the `one_liners.py` Python file! Creating your own one-liners is an excellent way to improve your understanding of the single line of Python code. After all, every complicated Python program consists just of a number of Python one-liners---chained together to a coherent whole!