Skip to content

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

License

Notifications You must be signed in to change notification settings

loopyme/Life-is-Short

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages