Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.85 KB

readme.md

File metadata and controls

36 lines (27 loc) · 1.85 KB

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.