Practical Python in 10 Lines of Code (or Less)
Python is a very expressive language. As Python developers we have access to 100,000s of libraries, saving a lot of coding effort. It may not be the fastest code to run but using Python can save a lot of developer time.
Here are a few examples of getting useful results with very few lines of Python code.
Python
is an excellent language for taking control of your computer and
performing some of the more tedious tasks. I recently used it to
automate how I create …
Python
is an easy-to-learn yet powerful language, and comes with a wealth of
libraries.
It is often used to create simple scripts. You run these on the
command line, …
Python is a simple but powerful language, and comes with a wealth of libraries. It took just 10 lines of code and the Turtle library …
Python is a simple but powerful language, and comes with a wealth of libraries. The chart above took just 9 lines of Python. All the …
How would you like to grab a share price daily and store it in a spreadsheet? Or add a new column to dozens of spreadsheets …
When you ask your spreadsheet to calculate 1/2 + 1/3 you get something like this: This is obviously an approximation. The 3’s after the …
(First part of the “Practical Python in 10 lines or less” series)
Python is a simple but powerful language, and comes with a wealth of libraries. …