loopyme / Life-is-Short

Print "Life is short" using python's various features

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Life-is-Short

中文

Based on Python3.8

Print "Life is short" using python's features.

This is a project for python learners, which aim is to demonstrate or practice some of Python's language features.

Examples

a format list if print set sort
b list comprehension Iteration lambda iterator recursion filter map
c reduce generator eval decorator with parameter decorator func as return partial func
d contextor generator yield monkey patch process pool coroutines duck type coroutines async

Each of the examples above are:

  • Able to print "Life is short"
  • Using the specified Python feature
  • Not using third-party packages
  • As simple and readable as possible

TODO

  • Explain the examples
  • Add examples for object-oriented programming
  • Add some more examples
  • Add Unit test
  • Add CI

Contributing

Any form of contributing is welcomed.

About

Print "Life is short" using python's various features

License:MIT License


Languages

Language:Python 100.0%