Skip to content

finxter/PythonOneLiners

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 

Repository files navigation

Python One Liners

This repository collects all Python one-liners that are of interest to the Python 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 -c 'print("hello world")'

Here are additional resources for Python one-liners:

Free Python One-Liners Learning Resources

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!

About

This repository collects all interesting Python one-liners. Feel free to submit yours!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 9

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy