Developed in the 80s, Python is open source and free to use, even for commercial applications.

Further, Python is also dynamic and supports object-oriented, procedural, and functional programming styles, among others.

Thanks to its flexibility, Python is one of the most widely used high-level programming languages today.

Top Python Tips and Tricks Every Developer Should Know

If you are learning Python, here are some awesome Python tricks you should know about.

For even more on list comprehensions, check outTrey Hunners tutorial.

Trick #2

Printing a List decently.

spot_img

If you are a programmer you will know that Lists dont print nicely.

Its even smart enough to not put one after the last element.

As an added advantage, this is pretty fast, running in linear time.

Take a string input.

Dont use more than one line of code.

Why should I use it?

An advantage with the built-in HTTP server is that you dont have to install and configure anything.

The only thing that you need, is to have Python installed.

you could use this to turn any directory in your system into your web server directory.

How do I use it?

source: www.techworm.net